Skip to content

Commit 8d8071e

Browse files
committed
another workaround
1 parent e446b9b commit 8d8071e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

apps/svelte.dev/src/routes/e/[code]/+page.server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import { error, redirect } from '@sveltejs/kit';
1919
// }
2020

2121
export async function load({ params, fetch }) {
22-
const codes: Record<string, Record<string, string[]>> = await fetch('/e/codes.json').then((r) =>
23-
r.json()
22+
const codes: Record<string, Record<string, string[]>> = await fetch('/e/tmp/codes.json').then(
23+
(r) => r.json()
2424
);
2525

2626
for (const url of Object.keys(codes)) {

apps/svelte.dev/src/routes/e/codes.json/+server.ts renamed to apps/svelte.dev/src/routes/e/tmp/codes.json/+server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { index } from '$lib/server/content';
22
import { json } from '@sveltejs/kit';
33

44
// Temporary workaround for the problem described in [code]/+page.server.ts
5+
// In a nested folder because of https://github.com/sveltejs/kit/issues/12778
6+
57
const reference = index['docs/svelte/reference'].children.filter(
68
(child) => child.slug.endsWith('-errors') || child.slug.endsWith('-warnings')
79
);

0 commit comments

Comments
 (0)