Use proxy-free runtime for built local serving

This commit is contained in:
Quintine committed 2026-10-09 03:30:27 +11:00
1 parent a1517ec949
commit 5544b69d7e
6 files changed
+57 -4

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ for (const db of config.d1_databases) {
throw new Error(`Migration/runtime database identity mismatch for ${db.binding}`);
}
}
const state = resolve(process.env.DUNE_STATE_PATH || '/data');
const state = resolve(process.env.DUNE_STATE_PATH || '.wrangler/state');
const port = Number(process.env.DUNE_PORT || 3000);
if (!Number.isInteger(port) || port < 1 || port > 65535) throw new Error('Invalid DUNE_PORT');
async function modulesIn(directory) {