From 56a3c6ecf4fd3a0699922953eb64cf08fb969cbb Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Thu, 4 Apr 2024 17:30:51 -0700 Subject: [PATCH] feat: prerender main page and blog --- src/routes/+page.ts | 1 + src/routes/blog/+page.ts | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 src/routes/+page.ts diff --git a/src/routes/+page.ts b/src/routes/+page.ts new file mode 100644 index 0000000..c8cacf0 --- /dev/null +++ b/src/routes/+page.ts @@ -0,0 +1 @@ +export const prerender = true; \ No newline at end of file diff --git a/src/routes/blog/+page.ts b/src/routes/blog/+page.ts index 3908839..d159661 100644 --- a/src/routes/blog/+page.ts +++ b/src/routes/blog/+page.ts @@ -3,6 +3,8 @@ import { marked } from 'marked'; import markedKatex from 'marked-katex-extension'; import markedAlert from 'marked-alert'; +export const prerender = true; + const options = { throwOnError: false };