Skip to content

Commit

Permalink
Setup deployment with Cloudflare
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshikouki committed Nov 4, 2024
1 parent 69983d1 commit c0adfc9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# cloudflare
.worker-next
Binary file modified bun.lockb
Binary file not shown.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@
"scripts": {
"dev": "bun --bun x next dev --turbopack",
"build": "bun --bun x next build",
"dev:worker": "wrangler dev --port 8771",
"build:worker": "cloudflare",
"preview:worker": "bun run build:worker && bun run dev:worker",
"deploy:worker": "bun run build:worker && wrangler deploy",
"start": "bun --bun x next start",
"lint": "bunx @biomejs/biome check .",
"format": "bunx @biomejs/biome check --write .",
"format:unsafe": "bunx @biomejs/biome check --write --unsafe .",
"update:all": "bun update --latest"
},
"dependencies": {
"@opennextjs/cloudflare": "^0.2.1",
"@radix-ui/react-slot": "^1.1.0",
"babel-plugin-react-compiler": "^0.0.0-experimental-b4db8c3-20241001",
"class-variance-authority": "^0.7.0",
Expand Down Expand Up @@ -40,7 +45,8 @@
"@types/react-dom": "npm:[email protected]",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.13",
"typescript": "^5.6.2"
"typescript": "^5.6.2",
"wrangler": "^3.84.1"
},
"resolutions": {
"@types/react": "npm:[email protected]",
Expand Down
5 changes: 5 additions & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
main = ".worker-next/index.mjs"
name = "Lastio"
compatibility_date = "2024-09-23"
compatibility_flags = ["nodejs_compat"]
assets = { directory = ".worker-next/assets", binding = "ASSETS" }

0 comments on commit c0adfc9

Please sign in to comment.