Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow dependencies to detect the build environment #85

Merged
merged 1 commit into from
Mar 20, 2021

Conversation

ofhouse
Copy link
Member

@ofhouse ofhouse commented Mar 19, 2021

Some dependencies (like Blitz.js or Prisma) using the environment variables NOW_BUILDER or VERCEL_BUILDER to run special configurations for Vercel builds.

Since the builder we use here is also a Vercel like environment we should make sure that these environment variables are set correctly when running the build steps.

Setting the environment variables however has an unintended side-effect, because Next.js changed the output folder for serverless-like environments from .next/serverless to .next/server (next#22731), so a version switch is also applied.

Relates #73.
Relates #70.

@ofhouse ofhouse force-pushed the feature/build-environment branch from 7b85684 to d9fbff0 Compare March 20, 2021 19:18
@ofhouse ofhouse force-pushed the feature/build-environment branch from d9fbff0 to e48ea7c Compare March 20, 2021 19:28
@ofhouse ofhouse mentioned this pull request Mar 20, 2021
2 tasks
@ofhouse ofhouse merged commit fe5213b into main Mar 20, 2021
@ofhouse ofhouse deleted the feature/build-environment branch March 20, 2021 19:36
@ofhouse ofhouse added this to the v0.8.0 milestone Mar 28, 2021
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.

1 participant