Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:

- run: pnpm install --frozen-lockfile

# Generate next-env.d.ts (in .gitignore); required before type-check
- run: pnpm next typegen
env:
NEXT_TYPEGEN: 'true'

# Additional checks
- run: pnpm lint:ts

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ linkcheck
# next.js
/.next/
/out/
next-env.d.ts
public/~partytown
public/page-data

Expand Down
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ Run `pnpm test` for vitest. Tests live alongside source files or in `__tests__`
| `pnpm lint:eslint` | ESLint check |
| `pnpm lint:prettier` | Prettier check |

## Repo UX / Generated files

`next-env.d.ts` is in `.gitignore` and is generated by Next.js when you run `pnpm dev` or `pnpm build`. When we upgrade to Next 15.5+, we can run `next typegen` in CI and in `lint:ts` so the file is generated before type-check.

## Developer Documentation (develop-docs/)

When writing requirements in `develop-docs/`:
Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ pnpm dev:developer-docs
```

With that, the repo is fully set up and you are ready to open local docs under http://localhost:3000

`next-env.d.ts` is in `.gitignore` and is generated when you run `pnpm dev` or `pnpm build`. When we upgrade to Next 15.5+, we can run `next typegen` in CI and in `lint:ts` so the file is generated before type-check.
7 changes: 0 additions & 7 deletions next-env.d.ts

This file was deleted.

6 changes: 5 additions & 1 deletion next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ const outputFileTracingIncludes = process.env.NEXT_PUBLIC_DEVELOPER_DOCS
'sitemap.xml': ['public/doctree.json'],
};

if (process.env.NODE_ENV !== 'development' && !process.env.NEXT_PUBLIC_SENTRY_DSN) {
if (
process.env.NODE_ENV !== 'development' &&
!process.env.NEXT_PUBLIC_SENTRY_DSN &&
!process.env.NEXT_TYPEGEN
) {
throw new Error(
'Missing required environment variable: NEXT_PUBLIC_SENTRY_DSN must be set in production'
);
Expand Down
Loading