refactor: set prerender to true by default and turn it off where needed instead of the other way around

This commit is contained in:
dusk 2024-09-21 22:03:16 +03:00
parent ac1bf0d245
commit 6db7c34af4
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw
5 changed files with 3 additions and 5 deletions

View File

@ -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 }) {

View File

@ -1 +0,0 @@
export const prerender = true;

View File

@ -1 +0,0 @@
export const prerender = true;

View File

@ -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,

View File

@ -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,