mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -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 {
|
:80 {
|
||||||
@proxied path /api/* /docs /openapi.json
|
@proxied path /api/* /docs /openapi.json
|
||||||
|
|
||||||
root * /app/dist
|
encode gzip zstd
|
||||||
encode gzip
|
|
||||||
uri strip_suffix /
|
uri strip_suffix /
|
||||||
|
|
||||||
# Handles Recipe Images / Assets
|
# Handles Recipe Images / Assets
|
||||||
|
@ -21,8 +20,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
handle {
|
handle {
|
||||||
try_files {path}.html {path} /
|
root * /app/dist
|
||||||
|
try_files {path}.html {path} /index.html
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -22,6 +22,7 @@ export const routes = [
|
||||||
];
|
];
|
||||||
|
|
||||||
const router = new VueRouter({
|
const router = new VueRouter({
|
||||||
|
base: process.env.BASE_URL,
|
||||||
routes,
|
routes,
|
||||||
mode: process.env.NODE_ENV === "production" ? "history" : "hash",
|
mode: process.env.NODE_ENV === "production" ? "history" : "hash",
|
||||||
scrollBehavior() {
|
scrollBehavior() {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
module.exports = {
|
module.exports = {
|
||||||
transpileDependencies: ["vuetify"],
|
transpileDependencies: ["vuetify"],
|
||||||
publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
|
publicPath: process.env.NODE_ENV === "production" ? "/" : "",
|
||||||
outputDir: process.env.NODE_ENV === "production" ? "./dist" : "../mealie/web",
|
outputDir: process.env.NODE_ENV === "production" ? "./dist" : "../mealie/web",
|
||||||
devServer: {
|
devServer: {
|
||||||
proxy: {
|
proxy: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue