From f0351d072288d603b1a469014d498aaaa5a0911c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 1 Dec 2023 19:52:37 -0800 Subject: use bun adapter --- Dockerfile | 5 +++-- bun.lockb | Bin 110513 -> 110919 bytes package.json | 1 + svelte.config.js | 3 ++- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d045c896..7c5373f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,5 +7,6 @@ COPY . . RUN bun i RUN bun run build -# CMD ["node", "build"] -CMD ["bun", "run", "--bun", "preview", "--host", "--port", "3000"] +WORKDIR /home/bun/app/build + +CMD ["bun", "run", "start"] diff --git a/bun.lockb b/bun.lockb index 04f28ca8..50141b28 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index c4ce55bb..491cb75f 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "@scure/bip39": "^1.2.1", "leaflet-tooltip-layout": "^0.1.2", "maplibre-gl": "^3.3.1", + "svelte-adapter-bun": "^0.5.1", "uint8array-extras": "^0.5.0", "unique-names-generator": "^4.7.1" } diff --git a/svelte.config.js b/svelte.config.js index 85618815..70484390 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,4 +1,5 @@ -import adapter from '@sveltejs/adapter-node'; +// import adapter from '@sveltejs/adapter-node'; +import adapter from 'svelte-adapter-bun' import preprocess from 'svelte-preprocess'; const config = { -- cgit v1.2.3