Update 3 files
This commit is contained in:
1 parent
2913b0332f
commit
77b6bb1c6e
3 files changed
+4
-2
No files matched your search
+1
-1
@@ -34,7 +34,7 @@
|
|||||||
"db:wal": "node scripts/sqlite-wal.mjs",
|
"db:wal": "node scripts/sqlite-wal.mjs",
|
||||||
"db:backup": "node scripts/sqlite-backup.mjs",
|
"db:backup": "node scripts/sqlite-backup.mjs",
|
||||||
"test": "bun test",
|
"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"
|
"typecheck": "next build --webpack && tsc --noEmit --pretty false"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export default defineConfig({
|
|||||||
webServer: process.env.DYAD_TEST_BASE_URL
|
webServer: process.env.DYAD_TEST_BASE_URL
|
||||||
? undefined
|
? 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",
|
url: "http://127.0.0.1:32104",
|
||||||
reuseExistingServer: !process.env.CI,
|
reuseExistingServer: !process.env.CI,
|
||||||
timeout: 120_000,
|
timeout: 120_000,
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ export function isTrustedRequestOrigin(request: Request): boolean {
|
|||||||
if (process.env.NODE_ENV !== 'production') {
|
if (process.env.NODE_ENV !== 'production') {
|
||||||
allowedOrigins.add('http://localhost:3000');
|
allowedOrigins.add('http://localhost:3000');
|
||||||
allowedOrigins.add('http://127.0.0.1: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;
|
const suppliedOrigin = origin ?? referer;
|
||||||
|
|||||||
Reference in new issue
Block a user