-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0dec2b
commit 580833a
Showing
4 changed files
with
137 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Workaround for vercel env pull cannot properly handle value that contains " #11258 | ||
// https://github.com/vercel/vercel/issues/11258 | ||
import * as readline from 'node:readline' | ||
|
||
const rl = readline.createInterface({ | ||
input: process.stdin, | ||
output: process.stdout, | ||
terminal: false, | ||
}) | ||
|
||
rl.on('line', (line) => { | ||
// Replace double quotes with single quotes, but only when they're part of the value | ||
const processed = line.replace(/^(.*)="(.*)"$/g, "$1='$2'") | ||
console.log(processed) | ||
}) | ||
|
||
rl.on('close', () => { | ||
process.exit(0) | ||
}) |