revanced-website/svelte.config.js
2022-12-25 01:46:45 -05:00

25 lines
641 B
JavaScript

import adapter from '@sveltejs/adapter-static';
import preprocess from 'svelte-preprocess';
import path from 'path';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),
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: adapter({
pages: 'public',
fallback: '404.html'
}),
env: {
publicPrefix: 'RV'
},
}
};
export default config;