Skip to content

SSR with Cloudflare works incorrect #5025

@GiantappMan

Description

@GiantappMan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions