Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
a4a77595
Unverified
Commit
a4a77595
authored
Oct 26, 2021
by
Rich Haines
Committed by
GitHub
Oct 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added warning about trusted domains (#30348)
parent
c7e4c854
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
url-imports.md
docs/api-reference/next.config.js/url-imports.md
+3
-0
No files found.
docs/api-reference/next.config.js/url-imports.md
View file @
a4a77595
...
@@ -6,6 +6,9 @@ description: Configure Next.js to allow importing modules from external URLs.
...
@@ -6,6 +6,9 @@ description: Configure Next.js to allow importing modules from external URLs.
URL Imports are an experimental feature that allows you to import modules directly from external servers (instead of from the local disk).
URL Imports are an experimental feature that allows you to import modules directly from external servers (instead of from the local disk).
> **Warning**: This feature is experimental. Only use domains that you trust to download and execute on your machine. Please exercise
> discretion, and caution until the feature is flagged as stable.
To opt-in, add the allowed URL prefixes inside
`next.config.js`
:
To opt-in, add the allowed URL prefixes inside
`next.config.js`
:
```
js
```
js
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment