mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
- Isolate test web server on port 2349 so E2E tests run alongside Docker - Use fresh SQLite database per test run via DB_PATH, fixing missing roles/audit_log tables from stale migration state - Fix analytics consent redirect loop when ANALYTICS_ENABLED=false by auto-declining consent instead of bare redirect - Dismiss analytics consent via API in auth setup and RBAC test user creation so the consent page never blocks UI tests - Make Vite port and proxy target configurable via env vars
24 lines
533 B
TypeScript
24 lines
533 B
TypeScript
import path from "node:path";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
dedupe: ["react", "react-dom"],
|
|
},
|
|
server: {
|
|
port: Number(process.env.PORT) || 1349,
|
|
proxy: {
|
|
"/api": process.env.VITE_API_URL || "http://localhost:13490",
|
|
},
|
|
},
|
|
build: {
|
|
rollupOptions: {},
|
|
},
|
|
});
|