You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the Terraform for Next.js module will support multiple deployments in the future, the image config can no longer passed as static values to this submodule.
Idea
A new variable should be added where an config endpoint can be defined.
The endpoint is then passed as environment variable to the Lambda.
From the lambda then the image config is requested from the endpoint.
The full hostname (including subdomains, e.g. sub.example.com) is sent as parameter to the endpoint.
The endpoint then returns a full Next.js image config that is then cached & used inside the Lambda to process the image.
The config from the endpoint overrides the settings that are made through the Terraform variables.
The text was updated successfully, but these errors were encountered:
Motivation
Since the Terraform for Next.js module will support multiple deployments in the future, the image config can no longer passed as static values to this submodule.
Idea
A new variable should be added where an config endpoint can be defined.
The endpoint is then passed as environment variable to the Lambda.
From the lambda then the image config is requested from the endpoint.
The full hostname (including subdomains, e.g. sub.example.com) is sent as parameter to the endpoint.
The endpoint then returns a full Next.js image config that is then cached & used inside the Lambda to process the image.
The config from the endpoint overrides the settings that are made through the Terraform variables.
The text was updated successfully, but these errors were encountered: