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.

S3 Upload not checking nextStaticDir #386

@jlaramie

Description

@jlaramie

Describe the bug
feat(serverless-component): decouple uploading of next static assets to S3 from next component (#374) broke a feature I introduced which allowed specifying where the static directory lived. Broke by this commit 2b74304

To Reproduce
Steps to reproduce the behavior:

  1. try and use nextStaticDir
  2. nextStaticDir Doesn't get used and if no folder exists in nextConfigDir/static|public then no files will get uploaded

Expected behavior
nextStaticDir should be used when determining the parent folder of the "static" or "public" directory

nextStaticDir is needed because there are use cases where nextConfigDir does not contain the static directories as outlined in #259

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions