mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 18:15:35 +01:00
Merge pull request #4006 from diogotcorreia/env-skip-build-geo
Some checks are pending
Node.js CI / build (push) Waiting to run
Some checks are pending
Node.js CI / build (push) Waiting to run
feat: add SKIP_BUILD_GEO env variable
This commit is contained in:
commit
9e94addada
1 changed files with 5 additions and 0 deletions
|
|
@ -6,6 +6,11 @@ import https from 'https';
|
||||||
import { list } from 'tar';
|
import { list } from 'tar';
|
||||||
import zlib from 'zlib';
|
import zlib from 'zlib';
|
||||||
|
|
||||||
|
if (process.env.SKIP_BUILD_GEO) {
|
||||||
|
console.log('SKIP_BUILD_GEO is set. Skipping geo setup.');
|
||||||
|
process.exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
if (process.env.VERCEL && !process.env.BUILD_GEO) {
|
if (process.env.VERCEL && !process.env.BUILD_GEO) {
|
||||||
console.log('Vercel environment detected. Skipping geo setup.');
|
console.log('Vercel environment detected. Skipping geo setup.');
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue