Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank page on Cloudflare Pages #12203

Closed
1 task
jamesli2021 opened this issue Oct 12, 2024 · 5 comments
Closed
1 task

Blank page on Cloudflare Pages #12203

jamesli2021 opened this issue Oct 12, 2024 · 5 comments
Labels
needs triage Issue needs to be triaged

Comments

@jamesli2021
Copy link

jamesli2021 commented Oct 12, 2024

Astro Info

Astro                    v4.16.1
Node                     v20.17.0
System                   macOS (arm64)
Package Manager          npm
Output                   server
Adapter                  @astrojs/cloudflare
Integrations             @astrojs/tailwind

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

I see blank page after followed this tutorial: deployed to GitHub and Cloudflare build success.

https://logsnag.com/blog/deploy-astro-cloudflare-pages-guide

What's the expected result?

What is the issue if SSR should be straightforward?

Link to Minimal Reproducible Example

https://github.com/jamesli2021/test5

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Oct 12, 2024
@bluwy
Copy link
Member

bluwy commented Oct 12, 2024

I'm guessing it's related to a recent regression. Can you try Astro 4.16.0 instead? #12201

@jamesli2021
Copy link
Author

jamesli2021 commented Oct 12, 2024

Can't test it since npm create [email protected] command don't work?

Please help test it out? :)

@willtemperley
Copy link

willtemperley commented Oct 12, 2024

I just came across this, but with a slightly different setup, I'm using Cloudflare Frameworks beta.

I can confirm using 4.16.0 works, I was getting this error with 4.16.1:

TypeError: Can't modify immutable headers.
    at setOriginHeader (_worker.js:14991:19)
....

@jamesli2021 Just set Astro to the exact version in your package.json:

  "dependencies": {
    "astro": "4.16.0",
  },

@jamesli2021
Copy link
Author

@willtemperley Great thanks! 4.16.0 works for me.

@bluwy
Copy link
Member

bluwy commented Oct 12, 2024

Thanks for the update. I'll close this for now in favor of #12201 then. We'll use that issue to track the bug.

@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants