Skip to content

Commit 7298e0b

Browse files
committed
cloudflare + fix mobile text input + loading state
1 parent a4271a9 commit 7298e0b

14 files changed

+981
-112
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ dist
44
.output
55
.vercel
66
.netlify
7-
netlify
87
.vinxi
98

109
# Environment
@@ -27,3 +26,7 @@ gitignore
2726
# System Files
2827
.DS_Store
2928
Thumbs.db
29+
30+
# wrangler files
31+
.wrangler
32+
.dev.vars

app.config.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import wasmpack from "vite-plugin-wasm-pack";
55

66
export default defineConfig({
77
server: {
8-
preset: "vercel",
8+
preset: "cloudflare-pages",
9+
rollupConfig: {
10+
external: ["node:async_hooks"]
11+
}
912
},
1013
ssr: true,
1114
vite: {

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"dev": "vinxi dev",
66
"build": "vinxi build",
77
"start": "vinxi start",
8-
"presets": "node updatePresets"
8+
"preview": "pnpm run build && npx wrangler pages dev",
9+
"deploy": "pnpm run build && wrangler pages deploy"
910
},
1011
"dependencies": {
1112
"@codemirror/commands": "^6.6.0",
@@ -29,9 +30,11 @@
2930
"vinxi": "^0.3.11"
3031
},
3132
"devDependencies": {
33+
"@cloudflare/workers-types": "^4.20241011.0",
3234
"@unocss/transformer-variant-group": "^0.59.4",
3335
"prettier": "^3.3.3",
34-
"vite-plugin-wasm-pack": "^0.1.12"
36+
"vite-plugin-wasm-pack": "^0.1.12",
37+
"wrangler": "^3.80.4"
3538
},
3639
"pnpm": {
3740
"overrides": {

0 commit comments

Comments
 (0)