Skip to content

Commit 4ae553d

Browse files
committed
docs(agents): require standalone preview assets
1 parent 4fa7137 commit 4ae553d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,6 @@ const tComponent = useTranslations('components.navigation.breadcrumb')
9898
## Development Workflow
9999

100100
- **Development server:** Do not start `npm run dev` automatically. User will start it manually when needed.
101+
- **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.
101103
- **Git commits:** Do not create commits autonomously. Always ask the user before committing changes.

0 commit comments

Comments
 (0)