> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# Multi-Page

Build several pages into separate [bundles](/guide/glossary.md#bundle), set up two ways: as entries in `lynx.config.ts`, or as one Angular project per page in `angular.json`.

## Entries in `lynx.config.ts`


- **`source.entry`** — each key, `main` and `settings`, becomes its own bundle: `main.lynx.bundle` and `settings.lynx.bundle`.
- **A bootstrap file per page** — `src/main.ts` and `src/pages/settings/main.ts` each call `bootstrapApplication()` with their own root component and config.
- **Independent apps** — the pages share no router or state. The **host app** ([Glossary](/guide/glossary.md#host-app)) opens each bundle on its own.

## Projects in `angular.json`


- **A project per page** — `angular.json` defines `main` and `settings` application projects, each with its own `browser` entry file.
- **`pages: 'all'`** — `pluginAngularLynx({ pages: 'all' })` builds every application project as a page, with its bundle named after the project. Pass `pages: ['main', 'settings']` to pick specific ones.
- **One build for every page** — `ng build main` builds both pages. The first project is named `main` because the app `ng build --platform` generates opens `main.lynx.bundle`.

## Related

- [Multi-page apps](/guide/multi-page.md)
- [Session Storage](/examples/session-storage.md), to share state between pages
- [`@blotch/angular-lynx-build`](/api/build/index.md)
