Greg Brimble | Cloudflare Pages
01/23/2022, 11:40 PMitsmatteomanf
01/23/2022, 11:40 PMitsmatteomanf
01/23/2022, 11:42 PMnuxt
on Workers. Maybe Nuxt 3...itsmatteomanf
01/23/2022, 11:43 PMGreg Brimble | Cloudflare Pages
01/23/2022, 11:43 PMitsmatteomanf
01/23/2022, 11:44 PMGreg Brimble | Cloudflare Pages
01/23/2022, 11:44 PMitsmatteomanf
01/23/2022, 11:44 PMGreg Brimble | Cloudflare Pages
01/23/2022, 11:45 PMmaximillian
01/24/2022, 4:56 PMhttps://
instead of http://
which is what I'm getting from the the raw API. Wtf is upmaximillian
01/24/2022, 4:57 PMmaximillian
01/24/2022, 4:58 PMRewl
01/24/2022, 10:27 PMJames
01/24/2022, 10:57 PMwrangler pages dev
essentially, via wrangler2 🙂 More info at https://github.com/cloudflare/wrangler2 and https://developers.cloudflare.com/pages/platform/functions#develop-and-preview-locallyRewl
01/24/2022, 11:36 PMnpx wrangler pages dev ./content/
. (now I have two problems...)Rewl
01/24/2022, 11:52 PMRewl
01/24/2022, 11:53 PMCompiled Worker successfully.
Rewl
01/25/2022, 1:13 AM./content/404.html
I can now confirm that the functions DO have the correct routing on <domain>.pages.dev
but on my local machine give a 404. (Windows, latest npm/node)Rewl
01/25/2022, 1:16 AMfunctionsRoutes.mjs
and functionsWorker.js
look good to me.zsmooth
01/25/2022, 4:00 AMzsmooth
01/25/2022, 1:12 PMtaro
01/25/2022, 10:42 PMwrangler pages dev --do DO_NAME=CLASS_NAME
taro
01/25/2022, 10:43 PMtaro
01/25/2022, 10:44 PMtaro
01/25/2022, 11:41 PMpages
branch (which i was using previously) hasnt been merged, thus miniflare mounts
arent being used, which i believe is essential when using functions (i.e. without a given "advanced" workers script)zsmooth
01/26/2022, 12:52 AMMikkel
01/26/2022, 4:15 PMgeelen
01/26/2022, 4:21 PMpackage.json
. You can use wrangler pages dev
to test things out locally before you push: https://developers.cloudflare.com/pages/platform/functions#develop-and-preview-locallyMikkel
01/26/2022, 4:23 PMgeelen
01/26/2022, 4:26 PM