Skip to content

add files directive to next-based packages#227

Merged
ships merged 1 commit into
mainfrom
ships/chore/add-dotnext-files
Feb 13, 2024
Merged

add files directive to next-based packages#227
ships merged 1 commit into
mainfrom
ships/chore/add-dotnext-files

Conversation

@ships
Copy link
Copy Markdown
Collaborator

@ships ships commented Feb 13, 2024

Issue(s) Resolved

Allows successful use of pnpm deploy of packages built with preconstruct/next.

Test Plan

Tested locally, built & deployed to AWS to verify.

Screenshots (if applicable)

Optional

Notes/Context/Gotchas

pnpm deploy sends all files (including .next AND all source files) to the "output" directory unless files is present. Since that includes next.config.js, npx next start treats the environment as development and fails due to only having prod dependencies.

Once next build has been completed, we can ship with ONLY the .next directory (for now).

Some maintenance might be required here if more files are needed later, but it should be O(ln) in changes over time.

Supporting Docs

@ships ships requested review from 3mcd and kalilsn February 13, 2024 21:31
@ships ships merged commit 21ad969 into main Feb 13, 2024
@ships ships deleted the ships/chore/add-dotnext-files branch February 13, 2024 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants