diff --git a/lib/utils/rand-user-agent.js b/lib/utils/rand-user-agent.js index 8bb4658a19..a6af6994fd 100644 --- a/lib/utils/rand-user-agent.js +++ b/lib/utils/rand-user-agent.js @@ -10,6 +10,7 @@ const { randUserAgent } = require('@tonyrl/rand-user-agent'); * @returns A random useragent for the given specifications. */ module.exports = ({ browser = 'chrome', os = 'mac os', device = 'desktop' }) => { + require('@tonyrl/rand-user-agent/data/user-agents.json') // prevent @vercel/nft from removing the file device = device.toLowerCase(); browser = browser.toLowerCase(); os = os.toLowerCase();