Skip to content
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

Add base origin setting #95

Merged
merged 5 commits into from
Dec 21, 2021
Merged

Add base origin setting #95

merged 5 commits into from
Dec 21, 2021

Conversation

ofhouse
Copy link
Member

@ofhouse ofhouse commented Dec 20, 2021

This PR adds the following:

  • Adds a new option (next_image_base_origin) to set the base origin URL where requests for absolute image paths should be resolved to
  • New example how to use next export with the image optimizer and S3

ToDo

  • Make sure that value from referer header is parsed and hostname is extracted
  • Add new option to manually set the base_domain for absolute images

Fixes #94.

@ofhouse ofhouse added this to the v12.0.1 milestone Dec 20, 2021
@ofhouse ofhouse changed the title Adds next export example Add base origin setting Dec 21, 2021
@ofhouse ofhouse merged commit fb6a47e into main Dec 21, 2021
@ofhouse ofhouse deleted the next-export branch December 21, 2021 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to support local images on nextjs deploy?
1 participant