From 3137cd9b25dbac592279133a79d7caf32236e773 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Thu, 4 Apr 2024 17:35:23 -0700 Subject: [PATCH] feat: prerender and disable csr on other pages --- src/routes/about/+page.ts | 2 ++ src/routes/blog/+page.ts | 1 + src/routes/portfolio/+page.ts | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 src/routes/about/+page.ts create mode 100644 src/routes/portfolio/+page.ts diff --git a/src/routes/about/+page.ts b/src/routes/about/+page.ts new file mode 100644 index 0000000..46df41d --- /dev/null +++ b/src/routes/about/+page.ts @@ -0,0 +1,2 @@ +export const csr = false; +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 d159661..389dcf8 100644 --- a/src/routes/blog/+page.ts +++ b/src/routes/blog/+page.ts @@ -4,6 +4,7 @@ import markedKatex from 'marked-katex-extension'; import markedAlert from 'marked-alert'; export const prerender = true; +export const csr = false; const options = { throwOnError: false diff --git a/src/routes/portfolio/+page.ts b/src/routes/portfolio/+page.ts new file mode 100644 index 0000000..4ae51e2 --- /dev/null +++ b/src/routes/portfolio/+page.ts @@ -0,0 +1,2 @@ +export const prerender = true; +export const csr = false; \ No newline at end of file