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. 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 + + +
+ + +