TypeError when trying to open outstatic #172
-
Using: I've followed the guide on adding outstatic to Next.js, but when navigating to /outstatic I'm confronted with the following error. Am I missing something? I've not even been able to get to the point of it complaining about environment variables. ○ Compiling /outstatic/[[...ost]]/page ... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @RyanxWolton |
Beta Was this translation helpful? Give feedback.
Hey @RyanxWolton,
Found the error. You placed the
route.ts
file inside the wrong folder.It should be under
/app/api/outstatic/[[...ost]]/route.ts
You forgot the/api/
part.It should work now.