forked from baron/baron-sso
chore: snapshot local state before dev merge
This commit is contained in:
@@ -4,6 +4,7 @@ import { defineConfig } from "vite";
|
||||
|
||||
const buildOutDir =
|
||||
process.env.ADMINFRONT_BUILD_OUT_DIR ?? "/tmp/baron-sso-adminfront-dist";
|
||||
const usePolling = process.env.DEV_SERVER_WATCH_POLLING === "true";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
@@ -24,6 +25,7 @@ export default defineConfig({
|
||||
},
|
||||
server: {
|
||||
host: "127.0.0.1",
|
||||
watch: usePolling ? { interval: 300, usePolling: true } : undefined,
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: process.env.API_PROXY_TARGET || "http://localhost:3000",
|
||||
|
||||
Reference in New Issue
Block a user