chore: netlify (#46)

vercel will explod
This commit is contained in:
Ax333l
2022-12-21 21:37:35 +01:00
committed by GitHub
parent 8f031178b3
commit 8d73663ae3
3 changed files with 4 additions and 85 deletions

View File

@@ -1,8 +1,6 @@
import adapter from '@sveltejs/adapter-static';
import preprocess from 'svelte-preprocess';
import { wrap } from './src/_vercel-moment.js';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
@@ -12,7 +10,7 @@ const config = {
kit: {
// adapter-static has vercel detection, but that does not let you set a custom 404 page easily.
// Instead, we have to use a wrapper that generates a vercel config if on vercel...
adapter: wrap(adapter, {
adapter: adapter({
pages: "public",
fallback: "404.html"
}),