Use proxy-free runtime for built local serving
This commit is contained in:
1 parent
a1517ec949
commit
5544b69d7e
6 files changed
+57
-4
No files matched your search
@@ -3,7 +3,8 @@ set -eu
|
||||
|
||||
# A failed migration must stop startup. Both commands use the same local D1 ID
|
||||
# and storage root. Never reset or replace this directory during updates.
|
||||
state_path=${DUNE_STATE_PATH:-/data}
|
||||
export DUNE_STATE_PATH="${DUNE_STATE_PATH:-/data}"
|
||||
state_path=$DUNE_STATE_PATH
|
||||
# Validate before migration; this is an administrator setting, not a request header.
|
||||
node --input-type=module -e '
|
||||
const value = process.env.DUNE_PUBLIC_ORIGIN;
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user