docker: switch to bun instead of node

This commit is contained in:
Xylight committed 2024-02-10 12:55:58 -08:00
1 parent 8edceaf54f
commit 5d271b1325
4 files changed
+13 -7

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
import auto from '@sveltejs/adapter-auto';
import node from '@sveltejs/adapter-node';
import bun from '@catdadcode/svelte-adapter-bun'
import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config} */
@@ -12,7 +13,7 @@ const config = {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: process.env.ADAPTER == 'node' ? node() : auto(),
adapter: process.env.ADAPTER == 'node' ? node() : process.env.ADAPTER == 'bun' ? bun() : auto(),
// csp: {
// directives: {
// 'script-src': ['self'],