Update 3 files

This commit is contained in:
[dyad] committed 2026-08-02 19:48:45 +02:00
1 parent 2913b0332f
commit 77b6bb1c6e
3 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@
"db:wal": "node scripts/sqlite-wal.mjs",
"db:backup": "node scripts/sqlite-backup.mjs",
"test": "bun test",
"test:e2e": "playwright test --config playwright-dyad.config.ts",
"test:e2e": "pnpm build && playwright test --config playwright-dyad.config.ts",
"typecheck": "next build --webpack && tsc --noEmit --pretty false"
},
"dependencies": {
+1 -1
View File
@@ -13,7 +13,7 @@ export default defineConfig({
webServer: process.env.DYAD_TEST_BASE_URL
? undefined
: {
command: "pnpm dev --hostname 127.0.0.1 --port 32104",
command: "pnpm start --hostname 127.0.0.1 --port 32104",
url: "http://127.0.0.1:32104",
reuseExistingServer: !process.env.CI,
timeout: 120_000,
+2
View File
@@ -34,6 +34,8 @@ export function isTrustedRequestOrigin(request: Request): boolean {
if (process.env.NODE_ENV !== 'production') {
allowedOrigins.add('http://localhost:3000');
allowedOrigins.add('http://127.0.0.1:3000');
allowedOrigins.add('http://localhost:32104');
allowedOrigins.add('http://127.0.0.1:32104');
}
const suppliedOrigin = origin ?? referer;