]> git.r.bdr.sh - rbdr/forum/blame_incremental - svelte.config.cjs
Update dependencies
[rbdr/forum] / svelte.config.cjs
... / ...
CommitLineData
1const { resolve } = require('path');
2const Node = require('@sveltejs/adapter-node');
3const Pkg = require('./package.json');
4
5/** @type {import('@sveltejs/kit').Config} */
6module.exports = {
7 kit: {
8 // By default, `npm run build` will create a standard Node app.
9 // You can create optimized builds for different platforms by
10 // specifying a different adapter
11 adapter: Node(),
12
13 // hydrate the <div id="forum"> element in src/app.html
14 target: '#forum',
15
16 vite: {
17 ssr: {
18 noExternal: Object.keys(Pkg.dependencies || {})
19 },
20 resolve: {
21 alias: {
22 $: resolve('src')
23 }
24 }
25 }
26 }
27};