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