mirror of
https://github.com/youwen5/site.git
synced 2024-11-24 17:33:51 -08:00
feat: prerender and disable csr on other pages
This commit is contained in:
parent
56a3c6ecf4
commit
3137cd9b25
3 changed files with 5 additions and 0 deletions
2
src/routes/about/+page.ts
Normal file
2
src/routes/about/+page.ts
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
export const csr = false;
|
||||||
|
export const prerender = true;
|
|
@ -4,6 +4,7 @@ import markedKatex from 'marked-katex-extension';
|
||||||
import markedAlert from 'marked-alert';
|
import markedAlert from 'marked-alert';
|
||||||
|
|
||||||
export const prerender = true;
|
export const prerender = true;
|
||||||
|
export const csr = false;
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
throwOnError: false
|
throwOnError: false
|
||||||
|
|
2
src/routes/portfolio/+page.ts
Normal file
2
src/routes/portfolio/+page.ts
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
export const prerender = true;
|
||||||
|
export const csr = false;
|
Loading…
Reference in a new issue