Matt _*
05/21/2023, 1:18 PMMatt _*
05/24/2023, 9:35 AMWalshy | Pages
05/24/2023, 11:07 AMWalshy | Pages
05/24/2023, 11:07 AMrptrainor
05/25/2023, 8:53 AMrptrainor
05/25/2023, 8:56 AMWorkers & Pages Overview
page. In the network tab though, I do see the 500 response with the {"message":"Unexpected Server Error"} Seems like a couple of people are having some sort of trouble with Planetscale with Drizzle on Cloudflare Pages. It works fine locally, but when deployed any DB calls get this 500 response on Cloudflare PagesWalshy | Pages
05/25/2023, 8:58 AMWalshy | Pages
05/25/2023, 8:58 AMWalshy | Pages
05/25/2023, 8:58 AMrptrainor
05/25/2023, 9:25 AMWalshy | Pages
05/25/2023, 9:27 AMfetch
with the cache
property which isn't supported on WorkersWalshy | Pages
05/25/2023, 9:28 AMWalshy | Pages
05/25/2023, 9:28 AMrptrainor
05/25/2023, 9:29 AMwrangler 2.20.0
Walshy | Pages
05/25/2023, 9:30 AM--experimental-local
should catch this locallyrptrainor
05/25/2023, 9:37 AM"wrangler": "wrangler pages dev ./public --local --persist",
to "wrangler": "wrangler pages dev ./public --experimental-local --persist"
I get ✘ [ERROR] local worker: Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@miniflare/tre' imported from /Users/rptrainor/gits/lightup-cloudflare/node_modules/wrangler/wrangler-dist/cli.js
in the terminal when I try to start it locallyrptrainor
05/25/2023, 9:37 AMrptrainor
05/25/2023, 9:42 AMnpm run dev
"scripts": {
"build": "remix build",
"dev:remix": "remix watch",
"dev:wrangler": "cross-env NODE_ENV=development npm run wrangler",
"dev": "npm-run-all build --parallel \"dev:*\"",
"start": "cross-env NODE_ENV=production npm run wrangler",
"typecheck": "tsc",
"wrangler": "wrangler pages dev ./public --local --persist",
"generate": "drizzle-kit generate:sqlite --schema=./app/db/schema.ts --out=./drizzle",
"up": "drizzle-kit up:sqlite",
"db:push": "drizzle-kit push:mysql"
},rptrainor
05/25/2023, 9:56 AMrptrainor
05/25/2023, 10:22 AMrptrainor
05/25/2023, 10:29 AM"@planetscale/database": "^1.6.0",
at least until @planetscale/database is able to fix to problem with 1.7.0
https://github.com/planetscale/database-js/pull/102#issuecomment-1499549618
https://github.com/cloudflare/workerd/issues/698rptrainor
05/25/2023, 10:29 AM