sdev
03/05/2023, 1:08 PMnpm add --no-save better-sqlite3
. We need better-sqlite3
to local dev D1. However, don't add better-sqlite3
to package.json
because Pages will try to install it on deployment which will throw an error.sdev
03/05/2023, 1:09 PMSkye
03/05/2023, 1:11 PMSkye
03/05/2023, 1:11 PMpages dev
doesn't use your production database because it runs it locally with miniflare - meaning you'll need to make the table locally tooSkye
03/05/2023, 1:12 PM--persist
in your pages dev command to use the file system, not an in-memory database, and then wrangler d1 execute --local
can help your create your tables locallyAriful
03/05/2023, 8:43 PMhanpolo
03/06/2023, 4:52 AMLarry
03/06/2023, 1:00 PMLarry
03/06/2023, 1:07 PMgetMiniflareBindings()
will give you the env parameter for your call to the handler. You'll have to compose your own params parameter for the handler call from your test.Larry
03/06/2023, 1:08 PMeonicum
03/06/2023, 2:19 PMcode (ERROR): 403, Response: "error code: 1010"
. Can somebody help me to resolve the issue?hanpolo
03/06/2023, 3:31 PMbbong
03/07/2023, 5:33 PManujdeshpande
03/07/2023, 6:55 PMwrangler pages dev out
but fails when I deploy to production. What's the best way to go about debugging this?weide
03/08/2023, 12:52 AMzszszsz
03/08/2023, 2:31 AMIsaac McFadyen | YYZ01
03/08/2023, 12:45 PMnext-on-pages
has some outstanding issues right now, and isn't given as much attention as e.g. someone like Vercel would. It works but it's not as integrated into the platform as competitors.
Pros:
Pages is free, and Functions pricing (what next-on-pages
runs on) is much cheaper than competitors.Isaac McFadyen | YYZ01
03/08/2023, 12:46 PMnext-on-pages
Github issues to see if any apply to you: https://github.com/cloudflare/next-on-pages/issueshanpolo
03/09/2023, 2:01 AMAriful
03/09/2023, 2:18 AMHardAtWork
03/09/2023, 8:09 AMonRequest
, onRequestGet
, onRequestPost
, etc, it will be ignored.zszszsz
03/09/2023, 10:18 AMHardAtWork
03/09/2023, 10:27 AMsten
03/09/2023, 2:53 PMnightshade427
03/09/2023, 3:04 PMWalshy | Pages
03/09/2023, 3:33 PMzszszsz
03/09/2023, 7:02 PMbundle: false
I thinknightshade427
03/10/2023, 12:31 AMkrsr
03/10/2023, 1:46 AMonRequestPost
using a fetch()
with method set to POST
?Walshy | Pages
03/10/2023, 1:51 AM