#19

Bug: not-found page not detecting when add [transport]

OpenSonalJayasingheopened 1y ago

After including app/[transport]/route.ts the app/not-found.tsx file is not detecting.

Possible Reason - app/[transport]/route.ts takes any request to /something try to match and use this mcp route handler.

Activity

1
quuu1y ago

hey @SonalJayasinghe right, am open to hearing solutions to the library for this!

for you to get around this, i'd recommend putting your mcp server at a subroute:

like app/mcp/[transport]/route.ts