From 729210cac4440a7431e3aba94a60d076ae7cd07f Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Fri, 5 Apr 2024 04:51:29 -0700 Subject: [PATCH] fix: add prerender entries to /year/slug to build properly --- src/routes/blog/[year]/[slug]/+page.server.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/routes/blog/[year]/[slug]/+page.server.ts diff --git a/src/routes/blog/[year]/[slug]/+page.server.ts b/src/routes/blog/[year]/[slug]/+page.server.ts new file mode 100644 index 0000000..7e9ad5b --- /dev/null +++ b/src/routes/blog/[year]/[slug]/+page.server.ts @@ -0,0 +1,5 @@ +import type { EntryGenerator } from './$types'; + +export const entries: EntryGenerator = () => { + return [{ year: '2024', slug: 'test-post' }]; +};