mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 12:57:46 +00:00
[tests] Add env var FORCE_BUILD_IN_REGION (#3036)
* [tests] Add env var FORCE_BUILD_IN_REGION * Add missing config
This commit is contained in:
@@ -35,6 +35,16 @@ async function nowDeploy (bodies, randomness) {
|
||||
meta: {},
|
||||
};
|
||||
|
||||
if (process.env.FORCE_BUILD_IN_REGION) {
|
||||
const { builds=[] } = nowDeployPayload;
|
||||
builds.forEach(b => {
|
||||
if (!b.config) {
|
||||
b.config = {};
|
||||
}
|
||||
b.config.forceBuildIn = process.env.FORCE_BUILD_IN_REGION;
|
||||
});
|
||||
}
|
||||
|
||||
console.log(`posting ${files.length} files`);
|
||||
|
||||
for (const { file: filename } of files) {
|
||||
|
||||
Reference in New Issue
Block a user