1c8796a4d7
This PR cleans up the markdown files under `packages/`. We previously had to support Next.js docs and translate it for astro docs with proper markdown syntax. This applies to generators, executors, and migrations. Also removes the function to do the translation in astro app since it's no longer needed. ## Code block (migrations) <img width="1086" height="800" alt="Screenshot 2025-11-20 at 1 23 53 PM" src="https://github.com/user-attachments/assets/bd9acb9b-7960-4e41-9d26-22d29da6658e" /> ## Aside (generators) <img width="802" height="443" alt="Screenshot 2025-11-20 at 1 43 17 PM" src="https://github.com/user-attachments/assets/e2999821-8783-46ed-a984-2193f6f8eafa" />
1.5 KiB
1.5 KiB
Examples
Basic Usage
The Module Federation Dev Server will serve a host application and find the remote applications associated with the host and serve them statically also.
See an example set up of it below:
{
"serve": {
"executor": "@nx/angular:module-federation-dev-server",
"configurations": {
"production": {
"buildTarget": "host:build:production"
},
"development": {
"buildTarget": "host:build:development"
}
},
"defaultConfiguration": "development",
"options": {
"port": 4200,
"publicHost": "http://localhost:4200"
}
}
}
Serve host with remotes that can be live reloaded
The Module Federation Dev Server will serve a host application and find the remote applications associated with the host and serve a set selection with live reloading enabled also.
See an example set up of it below:
{
"serve-with-hmr-remotes": {
"executor": "@nx/angular:module-federation-dev-server",
"configurations": {
"production": {
"buildTarget": "host:build:production"
},
"development": {
"buildTarget": "host:build:development"
}
},
"defaultConfiguration": "development",
"options": {
"port": 4200,
"publicHost": "http://localhost:4200",
"devRemotes": [
"remote1",
{
"remoteName": "remote2",
"configuration": "development"
}
]
}
}
}