site-libsoc/Server/app/sveltekit/svelte.config.js

38 lines
981 B
JavaScript
Raw Normal View History

2023-10-09 19:38:04 +07:00
import adapter from '@sveltejs/adapter-static';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
alias: {
'/js': './public/js',
'/components': './src/components',
'/pages': './src/pages',
'/css': './public/css',
'/img': './public/img',
'/assets': './public/assets',
'/fonts': './public/fonts',
'/routes': './src/routes',
'/favicon.ico': './public/favicon.ico'
},
prerender: {
handleHttpError: 'ignore'
},
// 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({
pages: 'build',
assets: 'build',
fallback: undefined,
precompress: false,
strict: true,
}),
output: {
preloadStrategy: 'modulepreload'
},
}
};
export default config;