You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The combined size of environment variables for Portal v1 and portal v2 exceed the 4KB limit imposed by Vercel for a single project. Vercel environment variable limits
To Reproduce
Steps to reproduce the behavior:
Redeploy preview branch
See error
Expected behavior
Vercel deploys preview branches on commit.
Additional context
Possible solutions:
Move the next branch to a new repo and set up another Vercel project. This also fixes the issue of Build & Development setting not being compatible with CRA and NextJS
Vercel 4KB workaround Since we use Doppler, we would need to use doppler webhooks and some automation to encrypt secrets and commit to repo? Seems unnecessary and complicated compared to the other option with some other consequences.
The text was updated successfully, but these errors were encountered:
From what I saw with the Vercel deployment, the Build & Deployment setting was properly configured to run npm run build and use "build" as the directory to deploy. However, the environment variable size limit is much more cumbersome to resolve. As a temporary workaround, I've created a temporary portal-next repo that will exist until Portal v2 becomes ready for migration.
To preserve Git history, the repo will be initialized using the existing portal repo, but its primary branch will be the next branch. For purposes of pre-release development, the next branch should be considered the default development branch, and new features should be built by branching off them. Existing contributors can add the other repository as a remote and use that as the base for development:
Alternatively, this other repo can be separately cloned, but it will still maintain the Git history of Portal v1 repo in addition to the next branch changes.
When the migration occurs, the next branch will be rebased onto the dev branch, and the Vercel deployment will be updated accordingly to test. When Portal v1 is fully deprecated and shut down, Portal v2 will become the production deployment, and the Vercel deployment will be updated accordingly.
There is seemingly something different that choosing the NextJS Build & Deployment setting does that we didn't account for with the Other setting even with the same build commands. You can test this out by changing the setting to other and redeploying the next previews.
Describe the bug
The combined size of environment variables for Portal v1 and portal v2 exceed the 4KB limit imposed by Vercel for a single project.
Vercel environment variable limits
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Vercel deploys preview branches on commit.
Additional context
Possible solutions:
The text was updated successfully, but these errors were encountered: