1_crih0hugos3aozaiy4h2yg

1_jjkeqpgz8waq5p-w5lhxuq

Steps to make Angular SSR :-

1. ng add @nguniversal/express-engine –clientProject project-name
List of files added and modified
src/
index.html app web page
main.ts bootstrapper for client app
main.server.ts * bootstrapper for server app
style.css styles for the app
app/ … application code
app.server.module.ts * server-side application module
server.ts * express web server
tsconfig.json TypeScript client configuration
tsconfig.app.json TypeScript client configuration
tsconfig.server.json * TypeScript server configuration
tsconfig.spec.json TypeScript spec configuration
package.json npm configuration
webpack.server.config.js * webpack server configuration

2. npm run build:ssr && npm run serve:ssr

You may also like

Leave a Reply