coolify/svelte.config.js

31 lines
507 B
JavaScript
Raw Normal View History

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