iceghost
iceghost
Explore posts from servers
CDCloudflare Developers
Created by iceghost on 7/11/2023 in #pages-help
`unstable_dev` with Cloudflare Pages
Then miniflare v2 it is. I'm figuring out how to use miniflare v3 here, unfortunately
11 replies
CDCloudflare Developers
Created by iceghost on 7/11/2023 in #pages-help
`unstable_dev` with Cloudflare Pages
basically, two things broke: 1. unstable_dev to preview a built-with-sveltekit output doesn't work 2. wrangler pages dev to preview a built-with-sveltekit output doesn't work i'm not actively working on this anymore, but that is my experience with local Cloudflare Pages
11 replies
CDCloudflare Developers
Created by iceghost on 7/11/2023 in #pages-help
`unstable_dev` with Cloudflare Pages
Then there would be no platform property, no? i would like to access Cloudflare's bindings inside my load functions, or server-side in general. pnpm dev would not work because nothing is running workerd, so I wanted to build the project and test it with wrangler, just like the docs suggests:
platform.env is only available in the production build. Use wrangler to test it locally.
platform.env is only available in the production build. Use wrangler to test it locally.
11 replies
CDCloudflare Developers
Created by iceghost on 7/11/2023 in #pages-help
`unstable_dev` with Cloudflare Pages
umm, i'm running those generated functions, so i'm not sure what you meant here
11 replies
CDCloudflare Developers
Created by iceghost on 7/11/2023 in #pages-help
`unstable_dev` with Cloudflare Pages
pnpm wrangler pages dev is broken as hell too, why pnpm wrangler pages dev .svelte-kit/cloudflare can find the functions but when inside .svelte-kit or cloudflare, running it again with pnpm wrangler pages dev cloudflare or . can't find the functions (No functions. Shimming...)
11 replies