add cloudflare build and preview scripts

This commit is contained in:
Jonas Schell 2024-08-22 12:12:46 +02:00
parent 15e862533d
commit 4e82693238
2 changed files with 6 additions and 1 deletions

3
.gitignore vendored
View File

@ -36,3 +36,6 @@ yarn-error.log*
# typescript
*.tsbuildinfo
# cloudflare
.wrangler

View File

@ -6,7 +6,9 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"pages:build": "pnpm dlx @cloudflare/next-on-pages",
"preview": "pnpm pages:build && pnpm --package=wrangler dlx wrangler pages dev"
},
"dependencies": {
"@datadog/browser-logs": "^5.10.0",