2024-10-22 18:49:08 +00:00
|
|
|
import adapter from "@sveltejs/adapter-static";
|
|
|
|
|
2024-10-31 15:01:22 +00:00
|
|
|
const webDir = "./web";
|
2024-10-22 18:49:08 +00:00
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
const config = {
|
|
|
|
kit: {
|
|
|
|
// 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(),
|
|
|
|
files: {
|
2024-10-31 15:01:22 +00:00
|
|
|
appTemplate: `${webDir}/app.html`,
|
|
|
|
routes: `${webDir}/routes`,
|
|
|
|
lib: `${webDir}/lib`,
|
|
|
|
assets: `${webDir}/public`,
|
2024-10-22 18:49:08 +00:00
|
|
|
},
|
|
|
|
alias: {
|
2024-10-31 15:01:22 +00:00
|
|
|
"$image/*": `${webDir}/assets/image/*`,
|
|
|
|
"$svg/*": `${webDir}/assets/svg/*`,
|
2024-10-22 18:49:08 +00:00
|
|
|
},
|
|
|
|
paths: {
|
2024-10-31 15:01:22 +00:00
|
|
|
assets: process.env.ASSETS_HOST ?? "",
|
2024-10-22 18:49:08 +00:00
|
|
|
},
|
|
|
|
version: {
|
|
|
|
name: `v-${Date.now()}`,
|
|
|
|
pollInterval: 1000 * 60 * 1, // 5 minutes
|
|
|
|
},
|
|
|
|
adapter: adapter({
|
2024-10-31 15:01:22 +00:00
|
|
|
pages: `${webDir}/public/build`,
|
|
|
|
assets: `${webDir}/public/build`,
|
|
|
|
fallback: "fallback.html",
|
2024-10-22 18:49:08 +00:00
|
|
|
strict: true,
|
|
|
|
}),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|