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

SSR with Cloudflare works incorrect #5025

Closed
1 task
GiantappMan opened this issue Oct 8, 2022 · 1 comment
Closed
1 task

SSR with Cloudflare works incorrect #5025

GiantappMan opened this issue Oct 8, 2022 · 1 comment

Comments

@GiantappMan
Copy link

GiantappMan commented Oct 8, 2022

What version of astro are you using?

1.4.6

Are you using an SSR adapter? If so, which one?

cloudflare

What package manager are you using?

yarn

What operating system are you using?

windows

Describe the Bug

HTML rendering incorrectly when using SSR with Cloudflare.

repro steps:

yarn
yarn build
yarn preview

image

<html>
<body>
<!--StartFragment-->

  | <!DOCTYPE html>
-- | --
  | <html lang="en">
  | <head>
  | <meta charset="utf-8">
  | <meta name="viewport" content="width=device-width">
  | <meta name="generator"<!DOCTYPE html>
  | content="Astro v1.4.6"<!DOCTYPE html>
  | >
  | <title>Astro</title>
  | <!DOCTYPE html>
  | <!DOCTYPE html>
  | </head>
  | <body>
  | <h1>Astro</h1>
  | </body></html>

<!--EndFragment-->
</body>
</html>

Link to Minimal Reproducible Example

https://github.com/DaZiYuan/astro-ssr-test.git

Participation

  • I am willing to submit a pull request for this issue.
@matthewp
Copy link
Contributor

Fixed by #5035, thanks @AirBorne04! Will be released today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants