mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02: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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user