refactor: set prerender to true by default and turn it off where needed instead of the other way around
This commit is contained in:
parent
ac1bf0d245
commit
6db7c34af4
@ -1,6 +1,6 @@
|
|||||||
export const csr = false;
|
export const csr = false;
|
||||||
export const ssr = true;
|
export const ssr = true;
|
||||||
export const prerender = false;
|
export const prerender = true;
|
||||||
export const trailingSlash = 'always';
|
export const trailingSlash = 'always';
|
||||||
|
|
||||||
export async function load({ url, setHeaders }) {
|
export async function load({ url, setHeaders }) {
|
||||||
|
@ -1 +0,0 @@
|
|||||||
export const prerender = true;
|
|
@ -1 +0,0 @@
|
|||||||
export const prerender = true;
|
|
@ -1,7 +1,5 @@
|
|||||||
import convertDate from "$lib/convertDate";
|
import convertDate from "$lib/convertDate";
|
||||||
|
|
||||||
export const prerender = true;
|
|
||||||
|
|
||||||
export interface PostData {
|
export interface PostData {
|
||||||
path: string,
|
path: string,
|
||||||
published: string,
|
published: string,
|
||||||
|
@ -2,6 +2,8 @@ import { GUESTBOOK_BASE_URL } from '$env/static/private'
|
|||||||
import { redirect, type Cookies } from '@sveltejs/kit'
|
import { redirect, type Cookies } from '@sveltejs/kit'
|
||||||
import auth from '$lib/guestbookAuth'
|
import auth from '$lib/guestbookAuth'
|
||||||
|
|
||||||
|
export const prerender = false;
|
||||||
|
|
||||||
interface Entry {
|
interface Entry {
|
||||||
author: string,
|
author: string,
|
||||||
content: string,
|
content: string,
|
||||||
|
Loading…
Reference in New Issue
Block a user