Closed sjunepark closed 6 months ago
Hello, you're using hybrid output mode, that means all of the routes are prerendered by default. Try adding export const prerender = false
to the greet endpoint.
@dallyh Glad this was my issue, thank you so much!
Astro Info
Describe the Bug
Hi, I'm not 100% sure these are bugs or just skill issues, but have noticed the problems below which I couldn't figure out why.
In
astro dev
everything seems to work fine, but thewrangler pages dev dist
version and the actual cloudflare deployed versions have the problem below.'content-type': 'application/octet-stream'
console.log
doesn't log anything to the console. (I've tried changing the --log-level duringwrangler pages dev
but this doesn't seem to be the issue.Here is a simple reproduced repo for this, thanks.
What's the expected result?
'content-type': 'application/json'
as specified in the source code.console.log
should be loggedLink to Minimal Reproducible Example
https://github.com/sjunepark/astro-cf-reproduce
Participation