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.

want to change _next/* and static/* ttl #375

@watanabeyu

Description

@watanabeyu

I want to change static/* ttl, so that I use SSG with Next9.3.0
Also I know rfc, but it's difficult soon.

I want to be able change like below.

inputs:
  cloudfront:
    origins:
      - url:...
        pathPatterns:
          "static/*":
            ttl:0

https://github.com/danielcondemarin/serverless-next.js/blob/1c2c0dc9a5f2b2d0c8a3c68e561c4539822aa9f9/packages/serverless-component/serverless.js#L156-L169

    const cloudFrontOrigins = [
      {
        url: bucketUrl,
        private: true,
        pathPatterns: {
          "_next/*": {
            ttl: _nexTTL
          },
          "static/*": {
            ttl: staticTTL
          }
        }
      }
    ];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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