Skip to content

Add option for config endpoint  #129

Open
@ofhouse

Description

@ofhouse

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy