yo. has anyone here set up astro ssr with cloudflare?
yo. has anyone here set up astro ssr with cloudflare?
<rootproject>/functions/auth/ containing signin.ts, signup.ts. In the documentation for local development, I can run npx wrangler pages dev <DIRECTORY-OF-ASSETS>. Can someone explain what is this directory of assets? Is it the dist folder created after running the command astro build? I tried npx wrangler pages dev dist. The web app can be opened in the local browser, but trying the signup button returns POST http://localhost:8788/auth/signup 405 (Method Not Allowed)./importReciperecipe-importer which kicks off a series of requests culminating in a LLM call that returns a stream (in this case an AsyncIterableStream, but I can convert that to a ReadableStream. I want to essentially relay this stream back to the API worker, which will relay it back to the clientfetch with: https://platform.openai.com/docs/api-reference/vite-plugin-cloudflareThis version of Wrangler will transpile using into direct calls to Symbol.dispose(), before running your code or deploying it to Cloudflare.

new Request() I get a type error when passing the request to the env.BINDING.fetch(req) because my request is a native fetch request and not a Cloudflare request.<rootproject>/functions/auth/npx wrangler pages dev <DIRECTORY-OF-ASSETS>npx wrangler pages dev distPOST http://localhost:8788/auth/signup 405 (Method Not Allowed)The Streams API is only available inside of the Request context, inside the fetch event listener callback./importReciperecipe-importerAsyncIterableStreamReadableStreamfetchvite-plugin-cloudflarenew Request()env.BINDING.fetch(req)await using foo = new SomeAsyncDisposable()