Configure static adapter

This commit is contained in:
Aleksi Lassila
2023-12-25 14:21:08 +02:00
parent 6c60de7ebc
commit 973f8831ee
5 changed files with 20 additions and 15 deletions

9
svelte.config.js Normal file → Executable file
View File

@@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-node';
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/kit/vite';
import { readFileSync } from 'fs';
import { fileURLToPath } from 'url';
@@ -17,7 +17,12 @@ const config = {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter(),
adapter: adapter({
fallback: 'index.html'
}),
paths: {
assets: 'https://replaceme.com'
},
version: {
name: pkg.version