Skip to content
Merged
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: 5 additions & 0 deletions .changeset/templates-index-html.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-effex": patch
---

Add the missing `index.html` entry file to the `ssg` and `ssr` templates. Only the `spa` template previously had one, which broke the client build step (`vite build`) in scaffolded SSG projects — Vite needs `index.html` as the client entry, and the SSG build path additionally reads `dist/index.html` after the client build to extract hashed asset paths for injection into the generated static pages. Both new files mirror the working `examples/twitter` shape and point their script tag at the existing `/src/client.ts` entry.
12 changes: 12 additions & 0 deletions packages/create-effex/templates/ssg/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Effex App</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/client.ts"></script>
</body>
</html>
12 changes: 12 additions & 0 deletions packages/create-effex/templates/ssr/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Effex App</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/client.ts"></script>
</body>
</html>
Loading