const { resolve } = require('path');
-const node = require('@sveltejs/adapter-node');
-const pkg = require('./package.json');
+const Node = require('@sveltejs/adapter-node');
+const Pkg = require('./package.json');
/** @type {import('@sveltejs/kit').Config} */
module.exports = {
- kit: {
- // By default, `npm run build` will create a standard Node app.
- // You can create optimized builds for different platforms by
- // specifying a different adapter
- adapter: node(),
+ kit: {
+ // By default, `npm run build` will create a standard Node app.
+ // You can create optimized builds for different platforms by
+ // specifying a different adapter
+ adapter: Node(),
- // hydrate the <div id="forum"> element in src/app.html
- target: '#forum',
+ // hydrate the <div id="forum"> element in src/app.html
+ target: '#forum',
- vite: {
- ssr: {
- noExternal: Object.keys(pkg.dependencies || {})
- },
- resolve: {
- alias: {
- $: resolve('src')
- }
- }
- }
- }
+ vite: {
+ ssr: {
+ noExternal: Object.keys(Pkg.dependencies || {})
+ },
+ resolve: {
+ alias: {
+ $: resolve('src')
+ }
+ }
+ }
+ }
};