1
0
forked from baron/baron-sso

adminfront 정적 서빙 경로 수정 & devfront 빌드 오류 수정

This commit is contained in:
2026-05-29 15:15:09 +09:00
parent bb87034898
commit 420f2429c3
4 changed files with 27 additions and 21 deletions

View File

@@ -120,6 +120,7 @@ ensure_frontend_dependencies
if [ "$mode" = "production" ]; then
echo "Running in production mode with custom static server..."
export ADMINFRONT_BUILD_OUT_DIR="${ADMINFRONT_BUILD_OUT_DIR:-/tmp/baron-sso-adminfront-dist}"
exec sh -c "npm run build && node ./scripts/serve-prod.mjs"
fi

View File

@@ -2,7 +2,8 @@ import react from "@vitejs/plugin-react";
import path from "path";
import { defineConfig } from "vite";
const buildOutDir = process.env.ADMINFRONT_BUILD_OUT_DIR ?? "dist";
const buildOutDir =
process.env.ADMINFRONT_BUILD_OUT_DIR ?? "/tmp/baron-sso-adminfront-dist";
export default defineConfig({
plugins: [react()],
@@ -11,6 +12,9 @@ export default defineConfig({
"lucide-react": path.resolve(process.cwd(), "node_modules/lucide-react"),
},
},
cacheDir:
process.env.ADMINFRONT_VITE_CACHE_DIR ??
"/tmp/baron-sso-adminfront-vite-cache",
envPrefix: ["VITE_", "USERFRONT_", "ORGFRONT_"],
build: {
outDir: buildOutDir,