mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-21 18:38:17 +00:00
Merge pull request #23874 from overleaf/ar-use-gcp-pre-emptible-signal
[clsi] Use GCP pre-emptible metadata instead of hostname GitOrigin-RevId: 2df305e68f2999c9d3bde051dbb533025478800f
This commit is contained in:
parent
6916e22b09
commit
13b4e6333c
1 changed files with 1 additions and 2 deletions
|
@ -1,11 +1,10 @@
|
|||
const Path = require('node:path')
|
||||
const os = require('node:os')
|
||||
const http = require('node:http')
|
||||
const https = require('node:https')
|
||||
|
||||
http.globalAgent.keepAlive = false
|
||||
https.globalAgent.keepAlive = false
|
||||
const isPreEmptible = os.hostname().includes('pre-emp')
|
||||
const isPreEmptible = process.env.PREEMPTIBLE === 'TRUE'
|
||||
|
||||
module.exports = {
|
||||
compileSizeLimit: process.env.COMPILE_SIZE_LIMIT || '7mb',
|
||||
|
|
Loading…
Add table
Reference in a new issue