switched to node adapter
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import adapter from '@sveltejs/adapter-static';
|
||||
import adapter from '@sveltejs/adapter-node';
|
||||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||
|
||||
const missingPaths = [
|
||||
@@ -20,15 +20,6 @@ const config = {
|
||||
strict: true,
|
||||
}),
|
||||
prerender: {
|
||||
handleHttpError: ({ path, referrer, message }) => {
|
||||
// ignore deliberate link to shiny 404 page
|
||||
if (missingPaths.includes(path)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// otherwise fail the build
|
||||
throw new Error(message);
|
||||
},
|
||||
handleMissingId: 'ignore',
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user