generated from nholtware/service-template-react
Initial commit
This commit is contained in:
commit
3a8e7184d5
32 changed files with 5218 additions and 0 deletions
19
vite.config.ts
Normal file
19
vite.config.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import react from "@vitejs/plugin-react";
|
||||
import { defineConfig } from "vitest/config";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
// Local dev: proxy /api to a backend (e.g. the service-template-express dev server).
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: process.env.API_PROXY_TARGET ?? "http://localhost:3000",
|
||||
rewrite: (p) => p.replace(/^\/api/, ""),
|
||||
},
|
||||
},
|
||||
},
|
||||
test: {
|
||||
environment: "jsdom",
|
||||
setupFiles: ["./src/test-setup.ts"],
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue