6 years ago
How to use the src directory and absolute imports in Next.js
#NextJS#Webdev
I'm super excited that this is finally a thing so all of my source code (src, get it) can live in the src directory and I can import it using absolute imports.
tsconfig.json or jsconfig.json filebaseUrl option:That's it π
ΒIf you're a WebStorm user make sure to right click the src directory and click "Mark as resource root".