Next.js Discord

Discord Forum

Is my folder setup wrong for API routes ?

Answered
Siberian posted this in #help-forum
Open in Discord
Avatar
SiberianOP
Anybody can help me correct the folder setup ? I dont see the json
Image
Image
Answered by Hakuna Matata
The pages folder should be outside the app folder
View full answer

13 Replies

Avatar
Hakuna Matata
The pages folder should be outside the app folder
Answer
Avatar
Hakuna Matata
app & pages dir are two different things
Avatar
SiberianOP
is this not correct still ?
Image
Avatar
Hakuna Matata
It's fine now
Avatar
Hakuna Matata
@Siberian so, it worked?
Avatar
SiberianOP
sorry . it works now 🙂
Avatar
SiberianOP
Hi @Hakuna Matata are you still there?
Avatar
Hakuna Matata
I am
Avatar
SiberianOP
So,is there a way I can use this package in a next js application ?
Avatar
Hakuna Matata
ahh, this is a different question, I suggest creating a new post on #help-forum
that way you'll get more help & questions are better managed
Avatar
SiberianOP
fair I will do it