]> git.r.bdr.sh - rbdr/forum/blob - svelte.config.cjs
aa6e76555c6b1e403ada594e8c4a01daba2e67b1
[rbdr/forum] / svelte.config.cjs
1 const { resolve } = require('path');
2 const Node = require('@sveltejs/adapter-node');
3 const Pkg = require('./package.json');
4
5 /** @type {import('@sveltejs/kit').Config} */
6 module.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 };