Skip to content

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Sep 27, 2022

As it stands right now, when we check whether or not to require instrumentServer, our check short-circuits if the code is running on vercel. This is a problem, because the first run of isBuild() causes a side effect (it sets an env var) which then enables all future runs, so without that initial run, future runs fail. This reverses the order of the check, so that isBuild() will always run.

@lobsterkatie lobsterkatie merged commit 0cfda74 into master Sep 27, 2022
@lobsterkatie lobsterkatie deleted the kmclb-nextjs-make-isBuild-run-on-vercel branch September 27, 2022 07:59
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