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 averydelusionalperson
The pages folder should be outside the app folder
View full answer

13 Replies

Avatar
averydelusionalperson
The pages folder should be outside the app folder
Answer
Avatar
averydelusionalperson
app & pages dir are two different things
Avatar
SiberianOP
is this not correct still ?
Image
Avatar
averydelusionalperson
It's fine now
Avatar
averydelusionalperson
@Siberian so, it worked?
Avatar
SiberianOP
sorry . it works now 🙂
Avatar
SiberianOP
Hi @averydelusionalperson are you still there?
Avatar
averydelusionalperson
I am
Avatar
SiberianOP
So,is there a way I can use this package in a next js application ?
Avatar
averydelusionalperson
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