mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-09 17:28:51 +00:00
CRITICAL white-screen bug from the build-output-isolation refactor: the standalone
server.js bakes distDir ("./.build/next") into its config and serves /_next/static
from <root>/.build/next/static — but assembleStandalone hard-coded the destination
to <outDir>/.next/static (+ sanitised/patched <outDir>/.next/{required-server-files,
server}). Result: the server's static dir was EMPTY → every JS/CSS chunk 404'd →
blank login page (health stayed 200, so it slipped past the health-only dry-run).
Mirror the distDir path (relative to projectRoot) for static, required-server-files
sanitization (was a silent no-op → 0 paths sanitised, now 11), and the Turbopack
chunk patch. Verified: booting the assembled bundle serves the webpack chunk 200.
Affects every consumer (npm/Docker/Electron/VPS).
|
||
|---|---|---|
| .. | ||
| assembleStandalone.mjs | ||
| bootstrap-env.mjs | ||
| build-next-isolated.mjs | ||
| native-binary-compat.mjs | ||
| pack-artifact-policy.ts | ||
| postinstall.mjs | ||
| postinstallSupport.mjs | ||
| prepare-electron-standalone.mjs | ||
| prepublish.ts | ||
| runtime-env.mjs | ||
| sync-env.mjs | ||
| uninstall.mjs | ||
| validate-pack-artifact.ts | ||
| write-build-sha.mjs | ||