Make local frontend backend configurable

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
leanderandCopilot committed 2026-10-22 04:21:44 +02:00
1 parent 098c6701f2
commit e23cbb1d27
5 files changed
+34 -12

No files matched your search

+8
View File
@@ -9,5 +9,13 @@ export default defineConfig({
__DEV__: process.env.NODE_ENV !== "production",
},
envDir: "..",
server: {
host: "127.0.0.1",
proxy: Object.fromEntries(
["/admin", "/accounts", "/inventory", "/report", "/static", "/media", "/graphql"].map(
(path) => [path, process.env.VITE_DEV_API_PROXY || "http://127.0.0.1:3000"],
),
),
},
build: { outDir: "../static", emptyOutDir: false },
});