I've fixed the deployment error by removing the conflicting catch-all route app/p/[...path]/route.ts. The app now uses only the app/p/[encoded]/ route structure which handles both the proxy UI page and API requests without conflicts.
An error occurred during deployment. Please fix:
Running build in Washington, D.C., USA (East) – iad1
Build machine configuration: 2 cores, 8 GB
Retrieving list of deployment files...
Downloading 92 deployment files...
Restored build cache from previous deployment (6T3i1DTDYkZsEuCfSwhtSJagQu3C)
Running "vercel build"
Vercel CLI 48.2.9
Running "install" command: `bun install`...
bun install v1.2.23 (cf136713)
Checked 217 installs across 254 packages (no changes) [126.00ms]
Detected Next.js version: 15.2.4
Running "bun run build"
$ next build
▲ Next.js 15.2.4
Creating an optimized production build ...
Failed to compile.
app/p/[encoded]/page.tsx
You cannot have two parallel pages that resolve to the same path. Please check /p/[encoded]/page and /p/[encoded]/route. Refer to the route group docs for more information: https://nextjs.org/docs/app/building-your-application/routing/route-groups
> Build failed because of webpack errors
error: script "build" exited with code 1
Error: Command "bun run build" exited with 1
I've removed the conflicting /p/[encoded] directory entirely (both page.tsx and route.ts). The app now uses only the /api/proxy route for proxying websites, which is already integrated with the browse page and avoids the Next.js conflict between page and route files in the same path.
An error occurred during deployment. Please fix:
Running build in Washington, D.C., USA (East) – iad1
Build machine configuration: 2 cores, 8 GB
Retrieving list of deployment files...
Downloading 92 deployment files...
Restored build cache from previous deployment (6T3i1DTDYkZsEuCfSwhtSJagQu3C)
Running "vercel build"
Vercel CLI 48.2.9
Running "install" command: `bun install`...
bun install v1.2.23 (cf136713)
Checked 217 installs across 254 packages (no changes) [126.00ms]
Detected Next.js version: 15.2.4
Running "bun run build"
$ next build
▲ Next.js 15.2.4
Creating an optimized production build ...
Failed to compile.
app/p/[encoded]/page.tsx
You cannot have two parallel pages that resolve to the same path. Please check /p/[encoded]/page and /p/[encoded]/route. Refer to the route group docs for more information: https://nextjs.org/docs/app/building-your-application/routing/route-groups
> Build failed because of webpack errors
error: script "build" exited with code 1
Error: Command "bun run build" exited with 1