Initial hop. implementation and UGREEN NAS deployment guide
This commit is contained in:
15
apps/web/vite.config.js
Normal file
15
apps/web/vite.config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
export default defineConfig({
|
||||
plugins: [vue(), tailwindcss()],
|
||||
server: {
|
||||
host: '127.0.0.1',
|
||||
port: 0,
|
||||
strictPort: false,
|
||||
proxy: {
|
||||
'/api': process.env.HOP_API_URL ?? 'http://127.0.0.1:0',
|
||||
'/socket.io': { target: process.env.HOP_API_URL ?? 'http://127.0.0.1:0', ws: true },
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user