This permit to prerender generator pages so they can be referenced
20 lines
505 B
JavaScript
20 lines
505 B
JavaScript
import adapter from "@sveltejs/adapter-static";
|
|
import preprocess from "svelte-preprocess";
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
// Consult https://github.com/sveltejs/svelte-preprocess
|
|
// for more information about preprocessors
|
|
preprocess: preprocess(),
|
|
|
|
kit: {
|
|
adapter: adapter({
|
|
fallback: "index.html",
|
|
}),
|
|
paths: {
|
|
relative: process.env.NODE_ENV === "production",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|