SvelteKit D1 example works in local but not after deployed to Cloudflare pages
I can get data from D1 in local:
but when I deploy to Cloudflare Pages via Gitlab CI, I just got an empty exception without error.
This is my code
response from local:
response when deployed on Cloudflare Pages:
And I already added the D1 database binding variables on the Cloudflare Pages Settings
Not sure what did I miss, thanks.
but when I deploy to Cloudflare Pages via Gitlab CI, I just got an empty exception without error.
This is my code
src/routes/api/customers/+server.ts:response from local:
response when deployed on Cloudflare Pages:
And I already added the D1 database binding variables on the Cloudflare Pages Settings
Not sure what did I miss, thanks.