2021-05-14 19:51:14 +00:00
|
|
|
import preprocess from 'svelte-preprocess';
|
|
|
|
import adapter from '@sveltejs/adapter-node';
|
2022-02-10 14:47:44 +00:00
|
|
|
const config = {
|
|
|
|
preprocess: preprocess(),
|
2021-05-14 19:51:14 +00:00
|
|
|
kit: {
|
2022-02-10 14:47:44 +00:00
|
|
|
adapter: adapter(),
|
2021-05-14 19:51:14 +00:00
|
|
|
prerender: {
|
|
|
|
enabled: false
|
|
|
|
},
|
2022-02-10 14:47:44 +00:00
|
|
|
floc: true,
|
2021-05-14 19:51:14 +00:00
|
|
|
vite: {
|
2022-05-11 21:21:45 +00:00
|
|
|
proxy: {
|
|
|
|
'/api/v2': {
|
|
|
|
target: 'http://localhost:3001/api/v2',
|
|
|
|
changeOrigin: true
|
|
|
|
}
|
|
|
|
},
|
2022-02-10 14:47:44 +00:00
|
|
|
optimizeDeps: {
|
|
|
|
exclude: ['svelte-kit-cookie-session']
|
2022-04-03 19:47:58 +00:00
|
|
|
},
|
|
|
|
server: {
|
|
|
|
fs: {
|
|
|
|
allow: ['./src/lib/locales/']
|
|
|
|
}
|
2021-05-14 19:51:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
2022-02-10 14:47:44 +00:00
|
|
|
|
|
|
|
export default config;
|