blob: 2737c4087a365a7f35b070e8736f3ca7d872d101 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
// import { webSocketServer } from '$lib/websocket';
export default defineConfig({
plugins: [sveltekit() /* webSocketServer */],
server: {
// https: {
// key: Bun.env.PUBLIC_ANILIST_REDIRECT_URI?.includes('192.168')
// ? await Bun.file(`${import.meta.dir}/certificates/key.pem`).text()
// : undefined,
// cert: Bun.env.PUBLIC_ANILIST_REDIRECT_URI?.includes('192.168')
// ? await Bun.file(`${import.meta.dir}/certificates/certificate.pem`).text()
// : undefined
// },
proxy: {}
}
});
|