Skip to content

Ensure fullstack SSG HTML includes a doctype#5612

Open
puneetdixit200 wants to merge 1 commit into
DioxusLabs:mainfrom
puneetdixit200:fix-ssg-doctype
Open

Ensure fullstack SSG HTML includes a doctype#5612
puneetdixit200 wants to merge 1 commit into
DioxusLabs:mainfrom
puneetdixit200:fix-ssg-doctype

Conversation

@puneetdixit200

Copy link
Copy Markdown

Closes #5500

Summary

  • Normalize parsed fullstack index templates so generated SSR/SSG HTML starts with <!DOCTYPE html>
  • Add a regression test for custom templates without a doctype

Tests

  • cargo test -p dioxus-server templates_without_a_doctype_are_normalized
  • cargo test -p dioxus-server --lib

@puneetdixit200 puneetdixit200 requested a review from a team as a code owner June 4, 2026 00:50
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

Successfully merging this pull request may close these issues.

dx build doesn't prepend <!DOCTYPE html> for server+fullstack+ssg builds

1 participant