2024-06-29 13:48:34 +00:00
|
|
|
// import adapter from '@sveltejs/adapter-auto';
|
|
|
|
import adapter from '@sveltejs/adapter-static';
|
2024-06-29 09:46:27 +00:00
|
|
|
import * as child_process from 'node:child_process';
|
|
|
|
|
|
|
|
/** @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.
|
2024-06-29 13:48:34 +00:00
|
|
|
adapter: adapter({
|
|
|
|
pages: 'build',
|
|
|
|
assets: 'build',
|
2024-06-29 23:05:35 +00:00
|
|
|
fallback: "fallback.html",
|
2024-06-29 18:52:52 +00:00
|
|
|
precompress: true,
|
2024-06-29 13:48:34 +00:00
|
|
|
strict: true,
|
|
|
|
}),
|
2024-06-29 09:46:27 +00:00
|
|
|
version: {
|
|
|
|
name: child_process.execSync('git rev-parse HEAD').toString().trim()
|
2024-07-04 15:55:57 +00:00
|
|
|
},
|
|
|
|
alias: {
|
|
|
|
'@cf/ui/*': "./src/lib/ui",
|
|
|
|
'@cf/icons/*': "./src/img/icons",
|
|
|
|
'@cf/store/*': "./src/lib/stores"
|
2024-06-29 09:46:27 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|
2024-06-17 20:17:27 +00:00
|
|
|
|