-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: ✏️ Added page about external images
- Loading branch information
Showing
12 changed files
with
54 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
description: This page introduces the handling of external images. | ||
--- | ||
|
||
# External images | ||
|
||
This feature automatically downloads images locally if an external image URL is specified in src. | ||
This, like the other features, works at build time and does not affect development speed. | ||
|
||
## Usage | ||
|
||
```jsx | ||
<Image src="https://next-export-optimize-images.vercel.app/og.png" width="1280" height="640" alt="" /> | ||
``` | ||
|
||
When in production, it will be rendered as follows. (Only important parts are shown.) | ||
|
||
```jsx | ||
<img | ||
srcset="/_next/static/chunks/images/og_1920_75.png 1x, /_next/static/chunks/images/og_3840_75.png 2x" | ||
src="/_next/static/chunks/images/og_3840_75.png" | ||
/> | ||
``` | ||
|
||
During development, as with local images, no optimization is performed. | ||
Also, no downloading to local is performed. | ||
|
||
```jsx | ||
<img | ||
srcset="https://next-export-optimize-images.vercel.app/og.png?width=1920 1x, https://next-export-optimize-images.vercel.app/og.png?width=3840 2x" | ||
src="https://next-export-optimize-images.vercel.app/og.png?width=3840" | ||
/> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"position": 3, | ||
"className": "red", | ||
"link": { | ||
"type": "generated-index", | ||
"title": "Features", | ||
"description": "List of Main Features." | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
docs/docs/03-Configuration/_category_.json → docs/docs/04-Configurations/_category_.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"position": 3, | ||
"position": 4, | ||
"className": "red", | ||
"link": { | ||
"type": "generated-index", | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
description: This page is to introduce examples of use. | ||
draft: true | ||
--- | ||
|
||
# Planned Features | ||
|
||
:::caution | ||
There API is in the planning stage and is subject to change in practice. | ||
::: |
36422cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
next-export-optimize-images – ./
next-export-optimize-images-git-main-dc7290.vercel.app
next-export-optimize-images-dc7290.vercel.app
next-export-optimize-images.vercel.app