fix(convex): evitar inline de segredo no build
This commit is contained in:
parent
c4e42ab49c
commit
06c4efd173
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ type NormalizedIdentifiers = {
|
|||
}
|
||||
|
||||
function getProvisioningSecret() {
|
||||
const secret = process.env.MACHINE_PROVISIONING_SECRET
|
||||
const secret = process.env["MACHINE_PROVISIONING_SECRET"]
|
||||
if (!secret) {
|
||||
throw new ConvexError("Provisionamento de máquinas não configurado")
|
||||
}
|
||||
|
|
@ -22,7 +22,7 @@ function getProvisioningSecret() {
|
|||
}
|
||||
|
||||
function getTokenTtlMs(): number {
|
||||
const raw = process.env.MACHINE_TOKEN_TTL_MS
|
||||
const raw = process.env["MACHINE_TOKEN_TTL_MS"]
|
||||
if (!raw) return DEFAULT_TOKEN_TTL_MS
|
||||
const parsed = Number(raw)
|
||||
if (!Number.isFinite(parsed) || parsed < 60_000) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue