Switch to static site rendering

This commit is contained in:
Zachary
2024-11-14 13:45:44 +01:00
parent f22af52e9b
commit b4d78cb6c9
4 changed files with 18 additions and 95 deletions

View File

@@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
@@ -7,6 +7,12 @@ const config = {
kit: {
adapter: adapter(),
prerender: {
entries: [
'*', // This will prerender all static routes
// Add specific dynamic routes here, e.g., '/blog/post-1', '/blog/post-2'
]
},
paths: {
assets: 'https://stretchmytimeoff.com', // Set your fully qualified domain here
}