Skip to content

Commit 4dcbecf

Browse files
committed
docs: static builds only by design
1 parent 99d573c commit 4dcbecf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ After a successful build, the builder checks that the prerendered pages actually
124124

125125
## 📁 Known limitations <a name="limitations"></a>
126126

127-
- **Static builds only.** `prerenderFormat: "file"` is for static hosting. An `ssr` entry is fine as long as `"outputMode"` is `"static"`: Angular then uses it only during `ng build` to prerender the pages, and no server is deployed. If a server is deployed, the build fails: a server needs no `.html` files, it answers `/foo` directly without redirecting to `/foo/`, and the Angular SSR server looks up prerendered pages as `index.html`.
127+
- **Static builds only, by design.** `prerenderFormat: "file"` solves a problem of static hosting and makes no sense in other setups. An `ssr` entry is fine as long as `"outputMode"` is `"static"`: Angular then uses it only during `ng build` to prerender the pages, and no server is deployed. If a server is deployed, the build fails: a server needs no `.html` files, it answers `/foo` directly without redirecting to `/foo/`, and the Angular SSR server looks up prerendered pages as `index.html`.
128128

129129
✅ Works: static output, the `ssr` entry only renders at build time
130130

0 commit comments

Comments
 (0)