All checks were successful
build-and-release / build (push) Successful in 1m19s
- tsconfig.json: add @types/node for playwright/test configs - lib/api.ts: handle both array and wrapped packages response from tracecoin endpoint - lib/server/gateway.ts: use import.meta.env instead of process.env - routes/admin/pricing.tsx: fix packages() usage after api.ts fix - routes/admin/roles/*.tsx: fix Set<string> types and module filter types - routes/admin/users/[id]/edit.tsx: add phone? to local User type - routes/admin/users/details/[id].tsx: fix roleFilter param type narrowing - components/admin/DashboardDesignPreview.tsx: fix budget→budget, responses→responseTag - vite.config.ts: type proxy callbacks as any - test/setup.ts: fix IntersectionObserver mock, add vitest/globals reference - tests/e2e: fix PNG type mismatches, add as any for mock overrides - tests/vitest: fix global.createElement mock type, vitest globals reference - tests/tsconfig.json: test-specific tsconfig with node types Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
758 B
TypeScript
28 lines
758 B
TypeScript
/// <reference types="vitest/config" />
|
|
import { defineConfig } from "@solidjs/start/config";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
export default defineConfig({
|
|
ssr: false,
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
server: {
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:9100",
|
|
changeOrigin: true,
|
|
secure: false,
|
|
ws: true,
|
|
configureProxy: (proxy: any) => {
|
|
proxy.on("proxyReq", (proxyReq: any, req: any) => {
|
|
// Forward cookies and auth headers
|
|
const cookie = req.headers.cookie;
|
|
if (cookie) {
|
|
proxyReq.setHeader("Cookie", cookie);
|
|
}
|
|
});
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|