feat: proxy embed assets to in-cluster project57 [deploy]
CI Pipeline / check-commit (push) Successful in 7s
CI Pipeline / deploy-only (push) Has been skipped
CI Pipeline / build (push) Successful in 27s
CI Pipeline / deploy (push) Failing after 2s

This commit is contained in:
mdszxy committed 2026-10-05 17:42:36 +08:00
1 parent f717f1d481
commit fe18e608dc
8 files changed
+67 -36

No files matched your search

+12
View File
@@ -1,12 +1,24 @@
import { defineConfig } from "vite";
const aOrigin = process.env.VITE_A_ORIGIN || "http://localhost:3000";
export default defineConfig({
server: {
port: 4173,
strictPort: true,
proxy: {
"/embed": aOrigin,
"/images": aOrigin,
"/api/contact": aOrigin,
},
},
preview: {
port: 4173,
strictPort: true,
proxy: {
"/embed": aOrigin,
"/images": aOrigin,
"/api/contact": aOrigin,
},
},
});