Skip to content

fix(web): exclude e2e files from Next.js production build - #578

Merged
jonwiggins merged 1 commit into
jonwiggins:mainfrom
oxtiger:fix/web-tsconfig-exclude-e2e
Aug 8, 2026
Merged

fix(web): exclude e2e files from Next.js production build#578
jonwiggins merged 1 commit into
jonwiggins:mainfrom
oxtiger:fix/web-tsconfig-exclude-e2e

Conversation

@oxtiger

@oxtiger oxtiger commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

The web tsconfig includes all *.ts files, which causes files under apps/web/e2e to be type-checked during next build.

apps/web/e2e/launch-stack.ts imports API test utilities, which are not part of the production web build and causes the Docker web image build to fail.

Exclude the e2e directory from the web TypeScript config so E2E infrastructure is checked by the E2E/test tooling instead of Next.js production builds.

The web tsconfig includes all *.ts files, which causes files
under apps/web/e2e to be type-checked during `next build`.

`apps/web/e2e/launch-stack.ts` imports API test utilities,
which are not part of the production web build and causes the
Docker web image build to fail.

Exclude the e2e directory from the web TypeScript config so E2E
infrastructure is checked by the E2E/test tooling instead of
Next.js production builds.
@jonwiggins
jonwiggins merged commit 20f514e into jonwiggins:main Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants