-
Notifications
You must be signed in to change notification settings - Fork 86
feat: make edge image opt-in instead of opt-out #1935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for next-plugin-edge-middleware ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-export-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for next-plugin-canary ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for next-i18next-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for nextjs-plugin-custom-routes-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
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.
Tested things out and it works great:
- The default demo site loads all the images as expected.
- with opt-in set to true we have ipx for edge
5. Edge Functions bundling
────────────────────────────────────────────────────────────────
Packaging Edge Functions from .netlify/edge-functions directory:
- ipx
- next_app_app_edge_page
- next_pages_api_og
- next_pages_edge__id_
- rsc-data
(Edge Functions bundling completed in 2.3s)
- and without edge for ipx when opt-in is not enabled (default)
5. Edge Functions bundling
────────────────────────────────────────────────────────────────
Packaging Edge Functions from .netlify/edge-functions directory:
- next_app_app_edge_page
- next_pages_api_og
- next_pages_edge__id_
- rsc-data
(Edge Functions bundling completed in 1.2s)
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.
Left a few small suggestions in the README. Looks good!
Co-authored-by: Stephanie <[email protected]>
Co-authored-by: Stephanie <[email protected]>
Co-authored-by: Stephanie <[email protected]>
Co-authored-by: Stephanie <[email protected]>
Co-authored-by: Stephanie <[email protected]>
Summary
Makes edge ipx opt-in instead of opt-out. Does not deprecate any of the old IPX related env vars, such as
NEXT_DISABLE_EDGE_IMAGES
orDISABLE_IPX
To use edge images, you must set
NEXT_FORCE_EDGE_IMAGES=true
. IPX is created as a regular Netlify Function by default, and will not be run on the edge.@stephmarie17 can you please check my updates to the README file?
Test plan
NEXT_FORCE_EDGE_IMAGES=true ntl deploy --build
on the default demo, go to logs and check that thenext/image handler
edge function existsntl deploy --build
on the default demo, go to logs, and check that thenext/image handler
edge function does not exist/image
route, make sure images are showing up - (this is not running on the edge anymore, but images should still appear)Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal
Closes https://github.com/netlify/pod-ecosystem-frameworks/issues/342
Standard checks:
🧪 Once merged, make sure to update the version if needed and that it was published correctly.