You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The end-to-end tests run against next build output started by Playwright's webServer, while the image runs Next.js's standalone output as a non-root user with a read-only root file system and all settings from the environment at start. CI's Build image job only smoke-tests the image (login page, start-page redirect, a write to /tmp/next-cache). A difference between the two (a file missing from the standalone output, a setting read at build time instead of at start) would pass every check and break the released image.
How?
In CI, start the image built by Build image (non-root, --read-only --tmpfs /tmp) with the settings of the end-to-end tests, and run the Playwright journey against it (Chromium is enough), with the mock services from e2e/mock/.
Activity