Files
UpSnap/frontend/svelte.config.js
2023-03-05 05:54:34 +01:00

26 lines
667 B
JavaScript

import adapter from '@sveltejs/adapter-static';
import preprocess from 'svelte-preprocess';
import path from 'path';
/** @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'
}),
alias: {
'@components': path.resolve('./src/components'),
'@stores': path.resolve('./src/stores')
},
prerender: {
entries: ['/device/[id]', '/settings', '/']
}
}
};
export default config;