- 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>
9 lines
284 B
TypeScript
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"],
|
|
},
|
|
});
|