Skip to content

Commit d8ab3b5

Browse files
committed
docs(agents): require host-aligned standalone previews
1 parent 4ae553d commit d8ab3b5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

AGENTS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,6 @@ const tComponent = useTranslations('components.navigation.breadcrumb')
9999

100100
- **Development server:** Do not start `npm run dev` automatically. User will start it manually when needed.
101101
- **Standalone preview assets:** Before starting `.next/standalone/server.js`, sync `public/` into `.next/standalone/public/` and `.next/static/` into `.next/standalone/.next/static/`. Repeat this after every production build because Next.js regenerates `.next/standalone/`. Never start the standalone server without these assets.
102-
- **Standalone preview verification:** After starting or restarting a standalone preview, verify that one representative page returns `200` and that a stylesheet referenced by that page returns `200` with a CSS content type. When using tmux, include the asset sync in the pane start command.
102+
- **Standalone preview host:** The standalone server `HOSTNAME` must match the hostname used in the preview URL. For a `http://localhost:<port>` preview, start with `HOSTNAME=localhost`; do not substitute `127.0.0.1`, because locale middleware rewrites can otherwise become self-redirects.
103+
- **Standalone preview verification:** After starting or restarting a standalone preview, verify that one default-locale URL without a locale prefix returns `200`, one locale-prefixed URL returns `200`, and a stylesheet referenced by the page returns `200` with a CSS content type. When using tmux, include the asset sync and matching `HOSTNAME` in the pane start command.
103104
- **Git commits:** Do not create commits autonomously. Always ask the user before committing changes.

0 commit comments

Comments
 (0)