fix static path

This commit is contained in:
hay-kot 2021-02-11 20:38:30 -09:00
commit 69c5aada04
2 changed files with 9 additions and 9 deletions

View file

@ -35,7 +35,7 @@ COPY --from=build-stage /app/dist /app/dist
RUN rm -rf /app/test /app/.temp
VOLUME [ "/app/data/" ]
RUN chmod +x run.sh
CMD script.sh
RUN chmod +x /app/run.sh
CMD /app/run.sh
# CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]

View file

@ -1,6 +1,6 @@
module.exports = {
transpileDependencies: ["vuetify"],
publicPath: process.env.NODE_ENV === "production" ? "/static/" : "/",
publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
outputDir: process.env.NODE_ENV === "production" ? "./dist" : "../mealie/web",
devServer: {
proxy: {
@ -12,10 +12,10 @@ module.exports = {
},
pluginOptions: {
i18n: {
locale: 'en',
fallbackLocale: 'en',
localeDir: 'locales',
enableInSFC: true
}
}
locale: "en",
fallbackLocale: "en",
localeDir: "locales",
enableInSFC: true,
},
},
};