2021-05-14 19:51:14 +00:00
|
|
|
import dotEnvExtended from 'dotenv-extended';
|
|
|
|
dotEnvExtended.load();
|
|
|
|
import preprocess from 'svelte-preprocess';
|
|
|
|
import path from 'path';
|
|
|
|
import adapter from '@sveltejs/adapter-node';
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
export default {
|
|
|
|
preprocess: [
|
|
|
|
preprocess({
|
|
|
|
postcss: true
|
|
|
|
})
|
|
|
|
],
|
|
|
|
kit: {
|
|
|
|
adapter: adapter({
|
|
|
|
out: 'build'
|
|
|
|
}),
|
|
|
|
target: '#svelte',
|
|
|
|
hostHeader: 'X-Forwarded-Host',
|
|
|
|
floc: true,
|
|
|
|
prerender: {
|
|
|
|
enabled: false
|
|
|
|
},
|
|
|
|
vite: {
|
|
|
|
server: {
|
|
|
|
hmr: {
|
|
|
|
port: 23456
|
|
|
|
}
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
$components: path.resolve('./src/components/'),
|
|
|
|
$store: path.resolve('./src/store/index.ts'),
|
2021-05-16 19:54:44 +00:00
|
|
|
$api: path.resolve('./src/routes/api/'),
|
2021-05-14 19:51:14 +00:00
|
|
|
$models: path.resolve('./src/models/')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|