ui: align js with api
This commit is contained in:
+4
-7
@@ -1,17 +1,14 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import { resolve } from 'path'
|
||||
|
||||
const API_URL = process.env.API_URL ?? 'http://192.168.56.1:3000'
|
||||
const API_URL = process.env.API_URL ?? 'http://localhost:3000'
|
||||
|
||||
export default defineConfig({
|
||||
define: {
|
||||
__API_URL__: JSON.stringify(API_URL),
|
||||
},
|
||||
server: {
|
||||
port: 5173,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: API_URL,
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
},
|
||||
},
|
||||
},
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
|
||||
Reference in New Issue
Block a user