Server-Side Rendering with Angular v19
- Check
server-express.ts
with theAppEngine
replacing theCommonEngine
server.ts
is now used by the vite dev-server if usingoutoutputMode: 'server
inangular.json
- Server routes are defined in app.routes.server.ts
- Server side token are accessible (like REQUEST, REQUEST_CONTEXT etc.)
Warning
This is pretty much a WIP and this demo is not feature complete.
Note
This project is based a pre-release of v19 which is under active development
The AppEngine
enables running non-node dependent servers !
This demo includes example with h3
, hono
and fastify
(in addition to express)
ng serve --configuration=fastify
(server file)ng serve --configuration=hono
(server file)ng serve --configuration=h3
(server file)
By default the demo will use express
.
- install the deps with
yarn
- run with
ng serve
oryarn start