Configure static adapter
This commit is contained in:
9
svelte.config.js
Normal file → Executable file
9
svelte.config.js
Normal file → Executable 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
|
||||
|
||||
Reference in New Issue
Block a user