mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Use Vercel headers for location.
This commit is contained in:
parent
c23373d164
commit
92ab391ef8
2 changed files with 23 additions and 7 deletions
|
|
@ -7,6 +7,11 @@ const https = require('https');
|
|||
const zlib = require('zlib');
|
||||
const tar = require('tar');
|
||||
|
||||
if (process.env.VERCEL) {
|
||||
console.log('Vercel environment detected. Skipping geo setup.');
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
const db = 'GeoLite2-City';
|
||||
|
||||
let url = `https://raw.githubusercontent.com/GitSquared/node-geolite2-redist/master/redist/${db}.tar.gz`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue