fix: nested index route not working in prod builds (#3132)

This was due to a mismatch in the disk snapshot compared to in memory.
This commit is contained in:
Marvin Hagemeister
2025-07-24 21:27:16 +02:00
committed by GitHub
parent e9f0a4bb0c
commit 85c17fac72
7 changed files with 69 additions and 28 deletions
+4 -2
View File
@@ -97,12 +97,12 @@ export async function withBrowser(fn: (page: Page) => void | Promise<void>) {
export async function withChildProcessServer(
dir: string,
task: string,
args: string[],
fn: (address: string) => void | Promise<void>,
) {
const aborter = new AbortController();
const cp = await new Deno.Command(Deno.execPath(), {
args: ["task", task],
args,
stdin: "null",
stdout: "piped",
stderr: "piped",
@@ -137,6 +137,8 @@ export async function withChildProcessServer(
}
if (!found) {
// deno-lint-ignore no-console
console.log(output);
throw new Error(`Could not find server address`);
}