Skip to content

Commit 046deab

Browse files
authored
Add absolute import example (#17342)
Might be easier for some users to see a whole app set up with it
1 parent 3c9da07 commit 046deab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/advanced-features/module-path-aliases.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ description: Configure module path aliases that allow you to remap certain impor
44

55
# Absolute Imports and Module path aliases
66

7+
<details>
8+
<summary><b>Examples</b></summary>
9+
<ul>
10+
<li><a href="https://github.com/vercel/next.js/tree/canary/examples/with-absolute-imports">With env</a></li>
11+
</ul>
12+
</details>
13+
714
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).
815

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

0 commit comments

Comments
 (0)