first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { loadEnv } from "vite";
|
||||
import { defineConfig } from "vitest/config";
|
||||
import react from "@vitejs/plugin-react-swc";
|
||||
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, ".", "");
|
||||
const platformProxyTarget = env.PLATFORM_API_PROXY || "http://127.0.0.1:8080";
|
||||
return {
|
||||
plugins: [react()],
|
||||
server: {
|
||||
host: "127.0.0.1",
|
||||
port: 5173,
|
||||
proxy: {
|
||||
"/api/v1": platformProxyTarget,
|
||||
"/healthz": platformProxyTarget
|
||||
}
|
||||
},
|
||||
preview: {
|
||||
host: "127.0.0.1",
|
||||
port: 4173
|
||||
},
|
||||
test: {
|
||||
environment: "node"
|
||||
}
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user