-
Notifications
You must be signed in to change notification settings - Fork 42
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
Cannot run in no-git env #163
Comments
or add a catch block if not get git environment.. |
Because we need to read information such as commits, branches, tags, etc. from git, this information is necessary for uploading artifacts. The vercel build environment provides a series of system environment variables, perhaps we can use the information. https://vercel.com/docs/concepts/projects/environment-variables#system-environment-variables |
My scene is deploy with cli command And in some case we not need it in init. I resolve it with require: if (PREF_REPORT) {
const PerfseePlugin = require('@perfsee/webpack').PerfseePlugin;
plugins.push(
new PerfseePlugin({
project: 'xxxxxxx',
})
);
} but will lose type. I claim this issue because in esm, standard import is |
Thanks for you remind, and we definitely should avoid reading required information & computing during lib importing. We will work on it and solve this issue asap. |
This works on Vercel 81d012f |
Because of this code:
in init, will call
getGitEnv
and fetch git context, but its not good in some no-git environment for example:vercel deploy
.Maybe we should get this variable when we use it?
The text was updated successfully, but these errors were encountered: