Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ tmp/
*.wat

# External macos drives have extra ._ files
._*
._*

# Nix build output
result
30 changes: 15 additions & 15 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions packages/fullstack-server/src/index_html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,14 @@ impl IndexHtml {
/// This will not include any customizations to the HTML nor any JavaScript to bootstrap a client-side app.
pub fn ssr_only() -> Self {
const DEFAULT: &str = r#"<!DOCTYPE html>
<html>
<head> </head>
<body>
<div id="main"></div>
</body>
</html>"#;
<html>
<head>
<title></title>
</head>
<body>
<div id="main"></div>
</body>
</html>"#;

Self::new(DEFAULT, "main").expect("Failed to load default index.html")
}
Expand Down
Loading