From ca13622187534fda12234eaef4f326d13eba6077 Mon Sep 17 00:00:00 2001 From: Jon Laing Date: Sun, 21 Jun 2026 03:42:02 -0400 Subject: [PATCH 1/2] fix: add missing index.html to SSG and SSR templates The SSG and SSR templates lacked an index.html entry, which broke the client build step ("vite build" in their package.json scripts). This was load-bearing for SSG specifically because the vite-plugin parses dist/index.html after the client build to extract real hashed asset paths to inject into the static HTML output. Adds index.html to both templates, matching the shape of the working twitter example. Script tag points to /src/client.ts (which both templates already have). Closes #20 Co-Authored-By: Claude Opus 4.7 --- packages/create-effex/templates/ssg/index.html | 12 ++++++++++++ packages/create-effex/templates/ssr/index.html | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 packages/create-effex/templates/ssg/index.html create mode 100644 packages/create-effex/templates/ssr/index.html diff --git a/packages/create-effex/templates/ssg/index.html b/packages/create-effex/templates/ssg/index.html new file mode 100644 index 00000000..addd8f6c --- /dev/null +++ b/packages/create-effex/templates/ssg/index.html @@ -0,0 +1,12 @@ + + + + + + Effex App + + +
+ + + diff --git a/packages/create-effex/templates/ssr/index.html b/packages/create-effex/templates/ssr/index.html new file mode 100644 index 00000000..addd8f6c --- /dev/null +++ b/packages/create-effex/templates/ssr/index.html @@ -0,0 +1,12 @@ + + + + + + Effex App + + +
+ + + From 400948f129936f39c8a402ba945f196d67b16513 Mon Sep 17 00:00:00 2001 From: Jon Laing Date: Wed, 24 Jun 2026 21:11:58 -0400 Subject: [PATCH 2/2] chore: add changeset for missing index.html fix Co-Authored-By: Claude Opus 4.7 --- .changeset/templates-index-html.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/templates-index-html.md diff --git a/.changeset/templates-index-html.md b/.changeset/templates-index-html.md new file mode 100644 index 00000000..62195a9c --- /dev/null +++ b/.changeset/templates-index-html.md @@ -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.