☠️ RESET for v2

This commit is contained in:
2021-09-14 13:00:12 +02:00
parent 511b0c85e5
commit bdbf511a75
124 changed files with 1612 additions and 11094 deletions

32
svelte.config.js Normal file
View File

@@ -0,0 +1,32 @@
import { resolve } from 'path'
import preprocess from 'svelte-preprocess'
const adapter = process.env.ADAPTER || '@sveltejs/adapter-node'
const options = JSON.parse(process.env.OPTIONS || '{}')
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Preprocessors docs: https://github.com/sveltejs/svelte-preprocess
preprocess: preprocess(),
kit: {
target: '#housesof',
// Vite configuration: https://vitejs.dev/config/
vite: {
resolve: {
alias: {
$components: resolve('src/components'),
$modules: resolve('src/modules'),
$utils: resolve('src/utils'),
}
},
},
}
}
if (adapter) {
config.kit.adapter = (await import(adapter)).default(options)
}
export default config