fix(scripts/dev): make --prod actually work
This commit is contained in:
parent
c067dc520d
commit
9ff945b752
1 changed files with 3 additions and 3 deletions
|
|
@ -23,8 +23,8 @@ const Sources = [
|
|||
].map(cwdify)
|
||||
const ExitTriggers = ['scripts'].map(cwdify)
|
||||
|
||||
const debouncedBuildDev = debounce(
|
||||
() => ((needRebuild = false), build(true)),
|
||||
const debouncedBuild = debounce(
|
||||
() => ((needRebuild = false), build(!prod)),
|
||||
250,
|
||||
)
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ const server = Bun.serve({
|
|||
hostname: lanHost ? '0.0.0.0' : '127.0.0.1',
|
||||
async fetch(req, srv) {
|
||||
try {
|
||||
if (needRebuild) await debouncedBuildDev()
|
||||
if (needRebuild) await debouncedBuild()
|
||||
console.debug(
|
||||
chalk.gray(
|
||||
`\u{1F79B} Receiving request from ${srv.requestIP(req)!.address}`,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue