make changes for serving on subpath

This commit is contained in:
hay-kot 2021-05-04 09:22:39 -08:00
commit 21a335eec8
3 changed files with 5 additions and 5 deletions

View file

@ -6,8 +6,7 @@
:80 {
@proxied path /api/* /docs /openapi.json
root * /app/dist
encode gzip
encode gzip zstd
uri strip_suffix /
# Handles Recipe Images / Assets
@ -21,8 +20,8 @@
}
handle {
try_files {path}.html {path} /
root * /app/dist
try_files {path}.html {path} /index.html
file_server
}
}

View file

@ -22,6 +22,7 @@ export const routes = [
];
const router = new VueRouter({
base: process.env.BASE_URL,
routes,
mode: process.env.NODE_ENV === "production" ? "history" : "hash",
scrollBehavior() {

View file

@ -1,7 +1,7 @@
const path = require("path");
module.exports = {
transpileDependencies: ["vuetify"],
publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
publicPath: process.env.NODE_ENV === "production" ? "/" : "",
outputDir: process.env.NODE_ENV === "production" ? "./dist" : "../mealie/web",
devServer: {
proxy: {