#Can I place the api directory in my project under the src directory instead of app ?

21 messages · Page 1 of 1 (latest)

last swan
#

This file structure seems more organized to me and I think it might make more sense to do it this way ?

foggy tideBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

dapper flax
last swan
#

So since you said that, does that mean I can do it ?

dapper flax
#

yea

onyx hull
last swan
#

One of you says yes, the other says no, I'm confused who to believe 😄 @onyx hull @dapper flax

last swan
dapper flax
#

yea, they need to be still placed in app/ dir. As far as I know the question while creating the project is just where the app/ dir is. Like is it at /app/ or is it at /src/app/. jourlev, correct me if I am wrong

last swan
onyx hull
onyx hull
#

but it's just a matter of preference; as far as nextjs is concerned whether or not you use src doesn't matter.

last swan
#

Frankly, this struck me as very strange. For some reason it seems more logical to me to do it the way I said, but you know.

onyx hull
onyx hull
last swan