Skip to content

Commit 5966062

Browse files
fix(vercel): add outputFileTracingRoot for route groups
1 parent d0972a2 commit 5966062

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

next.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
33
enabled: process.env.ANALYZE === 'true',
44
})
55

6+
const path = require('path')
7+
68
/** @type {import('next').NextConfig} */
79
const nextConfig = {
8-
// Docker/standalone output for RunPod deployment
9-
output: 'standalone',
10+
// Use standalone only for Docker/RunPod, not Vercel
11+
output: process.env.VERCEL ? undefined : 'standalone',
12+
13+
// Fix Vercel output tracing for route groups with parentheses
14+
outputFileTracingRoot: path.join(__dirname, './'),
1015

1116
// Performance optimizations
1217
compress: true,

0 commit comments

Comments
 (0)