]> git.r.bdr.sh - rbdr/forum/blame - svelte.config.cjs
Update documentation
[rbdr/forum] / svelte.config.cjs
CommitLineData
f088a659 1const { resolve } = require('path');
535cbcc7
RBR
2const Node = require('@sveltejs/adapter-node');
3const Pkg = require('./package.json');
f088a659
RBR
4
5/** @type {import('@sveltejs/kit').Config} */
6module.exports = {
535cbcc7
RBR
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(),
f088a659 12
535cbcc7
RBR
13 // hydrate the <div id="forum"> element in src/app.html
14 target: '#forum',
f088a659 15
535cbcc7
RBR
16 vite: {
17 ssr: {
18 noExternal: Object.keys(Pkg.dependencies || {})
19 },
20 resolve: {
21 alias: {
22 $: resolve('src')
23 }
24 }
25 }
26 }
f088a659 27};