backend: add static serving + multi-stage Dockerfile, website: add API test dashboard
This commit is contained in:
33
website/vite.config.ts
Normal file
33
website/vite.config.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react-swc";
|
||||
import path from "path";
|
||||
import componentTagger from "./plugins/component-tagger";
|
||||
|
||||
export default defineConfig(({ mode }) => ({
|
||||
server: {
|
||||
host: "0.0.0.0",
|
||||
port: 5173,
|
||||
allowedHosts: true,
|
||||
hmr: {
|
||||
overlay: false,
|
||||
timeout: 15000,
|
||||
},
|
||||
watch: {
|
||||
usePolling: true,
|
||||
interval: 500,
|
||||
binaryInterval: 500,
|
||||
},
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "http://localhost:8080",
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [react(), mode === "development" && componentTagger()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "src"),
|
||||
},
|
||||
},
|
||||
}));
|
||||
Reference in New Issue
Block a user