fix: fixed the comment that was out of #
This commit is contained in:
parent
28ad8483c0
commit
b1d3dda308
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ export async function generateKeyPair() {
|
||||||
// Escape newlines for .env format (single-line value that expands to PEM when loaded)
|
// Escape newlines for .env format (single-line value that expands to PEM when loaded)
|
||||||
const publicKey = keys.publicKey.replace(/\r?\n/g, "\\n");
|
const publicKey = keys.publicKey.replace(/\r?\n/g, "\\n");
|
||||||
const privateKey = keys.privateKey.replace(/\r?\n/g, "\\n");
|
const privateKey = keys.privateKey.replace(/\r?\n/g, "\\n");
|
||||||
const separator = "#------------- SERVER KEYS -------------\n# DO NOT EDIT THIS SECTION, THIS IS AUTOMATICALLY GENERATED BY THE SERVER\nDO NOT PUBLISH THE PRIVATE KEY TO THE PUBLIC!";
|
const separator = "#------------- SERVER KEYS -------------\n# DO NOT EDIT THIS SECTION, THIS IS AUTOMATICALLY GENERATED BY THE SERVER\n#DO NOT PUBLISH THE PRIVATE KEY TO THE PUBLIC!";
|
||||||
await Bun.write(".env.local", `${env}\n\n${separator}\n\nFEDERATION_PUBLIC_KEY="${publicKey}"\nFEDERATION_PRIVATE_KEY="${privateKey}"`);
|
await Bun.write(".env.local", `${env}\n\n${separator}\n\nFEDERATION_PUBLIC_KEY="${publicKey}"\nFEDERATION_PRIVATE_KEY="${privateKey}"`);
|
||||||
|
|
||||||
console.log("Keys generated successfully");
|
console.log("Keys generated successfully");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue