aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-01 19:52:37 -0800
committerAdam Soltys <[email protected]>2023-12-01 19:52:37 -0800
commitf0351d072288d603b1a469014d498aaaa5a0911c (patch)
tree3a68b17a62e03668a8fce5844dcb265d5d25aa7e
parented4d4eee2b81d5e516f2fdb001f29f22280b29b6 (diff)
downloadcoinos-ui-f0351d072288d603b1a469014d498aaaa5a0911c.tar.gz
coinos-ui-f0351d072288d603b1a469014d498aaaa5a0911c.zip
use bun adapter
-rw-r--r--Dockerfile5
-rwxr-xr-xbun.lockbbin110513 -> 110919 bytes
-rw-r--r--package.json1
-rw-r--r--svelte.config.js3
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
--- a/bun.lockb
+++ b/bun.lockb
Binary files 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 = {