Types location ?
Answered
American black bear posted this in #help-forum
American black bearOP
currently my
types folder is same as src folder. Is this correct or it should be inside src too ? i'm thinking it because i can't do import by @/types , i need to do something like ../../ . ThanksAnswered by joulev
Yes it can be in src/types or anywhere you want. There isn’t any limitation imposed by nextjs here
5 Replies
@American black bear currently my `types` folder is same as `src` folder. Is this correct or it should be inside `src` too ? i'm thinking it because i can't do import by `@/types` , i need to do something like `../../` . Thanks
Yes it can be in src/types or anywhere you want. There isn’t any limitation imposed by nextjs here
Answer
It’s in src/types for me too
American black bearOP
does it affect built process ?
@American black bear does it affect built process ?
No it doesn’t, no need to worry about it
@joulev No it doesn’t, no need to worry about it
American black bearOP
okay cool. Thank you very much ðŸ‘