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
10 changes: 10 additions & 0 deletions apps/web/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ const config: NextConfig = {
reactStrictMode: true,
output: 'standalone',
outputFileTracingRoot: join(dirname(fileURLToPath(import.meta.url)), '..', '..'),
/**
* Next 16.3 emits ESM interop helpers but traces only the CJS ones into the standalone
* output, so the image builds, starts, and then fails every request on a missing
* `@swc/helpers/esm/_interop_require_default.js`. Pulling the ESM directory in by hand
* until the tracer resolves it — the glob covers pnpm's content-addressed layout, where
* more than one version of the package can be present.
*/
outputFileTracingIncludes: {
'**/*': ['../../node_modules/.pnpm/@swc+helpers@*/node_modules/@swc/helpers/esm/**/*'],
},
transpilePackages: ['@flakemetry/db', '@flakemetry/queries', '@flakemetry/contracts'],
serverExternalPackages: ['@prisma/client'],
async headers() {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@flakemetry/db": "workspace:*",
"@flakemetry/notify": "workspace:*",
"@flakemetry/queries": "workspace:*",
"next": "^16.2.11",
"next": "^16.3.1",
"next-auth": "5.0.0-beta.32",
"react": "^19.2.8",
"react-dom": "^19.2.8",
Expand Down
96 changes: 48 additions & 48 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.