Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Ability to configure all cloudfront inputs #270

@barrysteyn

Description

@barrysteyn

One of the features that I always need to update is the ability to configure cloudfront. Rather than making one off input configurations for each feature (e.g. forwarding certain headers), can I suggest rather allowing one to configure any cloudfront options that are available from @serverless/aws-cloudfront, like so:

myNextApplication:
  component: serverless-next.js
  inputs:
     cloudfront:
        default:
            inputs here
        api:
            inputs here

The idea is that anything you have not set could be set by these inputs. For example, I need user-agent forwarding and I want to whitelist what cloudfront allows me to do regarding headers.

This would solve #240 #198 It would also make other future requests asking for cloudfront changes obsolete.

What do you think? I can get a PR for this out quite quickly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions