add environment variable NUXT_DEV_SERVER
This commit is contained in:
@@ -53,7 +53,7 @@ export default defineNuxtConfig({
|
|||||||
periodicSyncForUpdates: 20,
|
periodicSyncForUpdates: 20,
|
||||||
},
|
},
|
||||||
devOptions: {
|
devOptions: {
|
||||||
enabled: true,
|
enabled: false,
|
||||||
type: 'module',
|
type: 'module',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -83,7 +83,7 @@ export default defineNuxtConfig({
|
|||||||
nitro: {
|
nitro: {
|
||||||
devProxy: {
|
devProxy: {
|
||||||
"/api": {
|
"/api": {
|
||||||
target: "http://localhost:8000/api",
|
target: process.env.NUXT_DEV_SERVER ?? 'http://localhost:8000/api',
|
||||||
prependPath: true,
|
prependPath: true,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user