mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-11-30 22:45:46 +01:00
updated network for proxy use
This commit is contained in:
@@ -14,14 +14,14 @@ export default defineConfig(({ mode }) => {
|
||||
NODE_ENV: mode,
|
||||
ENABLE_PRO: env.ENABLE_PRO || 'false',
|
||||
VITE_APP_TITLE: env.APP_TITLE || 'Shift Planning App',
|
||||
VITE_API_URL: isProduction ? '/api' : 'http://localhost:3002/api',
|
||||
VITE_API_URL: isProduction ? '/api' : '/api',
|
||||
}
|
||||
|
||||
return {
|
||||
plugins: [react()],
|
||||
|
||||
server: isDevelopment ? undefined : {
|
||||
port: 3002,
|
||||
server: isDevelopment ? {
|
||||
port: 3003,
|
||||
host: true,
|
||||
open: true,
|
||||
proxy: {
|
||||
@@ -31,7 +31,7 @@ export default defineConfig(({ mode }) => {
|
||||
secure: false,
|
||||
}
|
||||
}
|
||||
},
|
||||
} : undefined,
|
||||
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
|
||||
Reference in New Issue
Block a user