lasthourcloud/svelte.config.js

40 lines
766 B
JavaScript
Raw Normal View History

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/'),
$models: path.resolve('./src/models/')
}
}
}
}
};