mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 06:23:34 -07:00
make changes for serving on subpath
This commit is contained in:
parent
f0fad8ee41
commit
21a335eec8
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
||||
}
|
|
@ -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() {
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue