aboutsummaryrefslogtreecommitdiff
path: root/svelte.config.js
blob: 94e8aaccb01dd57408f7b1cbe7ce5f2916c41588 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// import adapter from '@sveltejs/adapter-node'
import adapter from '@sveltejs/adapter-node'
// import adapter from '@sveltejs/adapter-vercel'
import preprocess from 'svelte-preprocess'
import { minifyHtml } from 'vite-plugin-html'

/** @type {import('@sveltejs/kit').Config} */
const config = {
	// Consult https://github.com/sveltejs/svelte-preprocess
	// for more information about preprocessors
	preprocess: preprocess(),

	kit: {
		// adapter: adapter(),
		adapter: adapter({
			out: 'build',
			precompress: true,
			env: {
				host: '127.0.0.1'
			}
		}),
		

		// Override http methods in the Todo forms
		methodOverride: {
			allowed: ['PATCH', 'DELETE']
		},

		// https://vitejs.dev/config/
		// vite: {
		// 	plugins: [minifyHtml()],
		// 	build: {
		// 		rollupOptions: {
		// 			external: ['discord-api-types/payloads/v9', 'discord-api-types', 'discord-api-types/v9'],
		// 			output: {
		// 				// manualChunks: undefined,
		// 			},
		// 		},
		// 	},
		// },
	}
};

export default config;