1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-04 21:15:22 +02:00

fix recipe static routes

This commit is contained in:
hay-kot 2021-08-09 16:19:23 -08:00
parent 625dbcdea5
commit 8710dad727
11 changed files with 54 additions and 29 deletions

View file

@ -198,6 +198,7 @@ export default {
publicRuntimeConfig: {
GLOBAL_MIDDLEWARE: process.env.GLOBAL_MIDDLEWARE || null,
ALLOW_SIGNUP: process.env.ALLOW_SIGNUP || true,
SUB_PATH: process.env.SUB_PATH || "",
axios: {
browserBaseURL: process.env.SUB_PATH || "",
},
@ -208,9 +209,9 @@ export default {
proxy: {
// "http://localhost:9000/*/api",
// See Proxy section
[`${process.env.SUB_PATH}api`]: {
[`${process.env.SUB_PATH || ""}api`]: {
pathRewrite: {
[`${process.env.SUB_PATH}api`]: "/api", // rewrite path
[`${process.env.SUB_PATH || ""}api`]: "/api", // rewrite path
},
changeOrigin: true,
target: process.env.API_URL || "http://localhost:9000",
@ -268,7 +269,7 @@ export default {
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
// https://nuxtjs.org/docs/2.x/configuration-glossary/configuration-build
analyze: true,
analyze: process.env.NODE_ENV !== "production",
babel: {
plugins: [["@babel/plugin-proposal-private-property-in-object", { loose: true }]],
},