pcbjam/site/vitest.config.ts
Istvan Matejcsok 74afb7b726 harden the marketing site: gate demo overrides, rate-limit + redact waitlist
- gerber-demo/boot.js honors the base/cdn/tag script-source overrides only on a
  loopback hostname, so a shipped page ignores them.
- /api/waitlist gains a best-effort per-IP/per-address rate limit and masks the
  submitter address in the no-key log line.
Adds vitest to the site: test/boot-overrides.test.ts (happy-dom) and
test/waitlist.test.ts.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 12:46:17 +02:00

9 lines
284 B
TypeScript

import { defineConfig } from "vitest/config";
// Node env by default (the waitlist route test). The boot.js DOM test opts into
// happy-dom per-file via a `// @vitest-environment happy-dom` pragma.
export default defineConfig({
test: {
include: ["test/**/*.test.ts"],
},
});