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

Description
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:
- try and use nextStaticDir
- 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