Skip to content

Commit

Permalink
Add absolute import example (#17342)
Browse files Browse the repository at this point in the history
Might be easier for some users to see a whole app set up with it
  • Loading branch information
samrobbins85 committed Oct 27, 2020
1 parent 3c9da07 commit 046deab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/advanced-features/module-path-aliases.md
Expand Up @@ -4,6 +4,13 @@ description: Configure module path aliases that allow you to remap certain impor

# Absolute Imports and Module path aliases

<details>
<summary><b>Examples</b></summary>
<ul>
<li><a href="https://github.com/vercel/next.js/tree/canary/examples/with-absolute-imports">With env</a></li>
</ul>
</details>

Next.js automatically supports the `tsconfig.json` and `jsconfig.json` `"paths"` and `"baseUrl"` options since [Next.js 9.4](https://nextjs.org/blog/next-9-4).

> Note: `jsconfig.json` can be used when you don't use TypeScript
Expand Down

0 comments on commit 046deab

Please sign in to comment.