Skip to content

Commit

Permalink
Update generate-keys.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamplata committed Nov 14, 2021
1 parent 753a91f commit 6137e52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/generate-keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ async function generateKeys() {
// Construct the values of all the necessary keys
const AUTH_PRIVATE_KEY = { type: "RS256", key: privateKey };
const AUTH_PUBLIC_KEY = { type: "RS256", key: publicKey };
const frontendEnv = `${frontendEnvironmentVariables}AUTH_PRIVATE_KEY=${JSON.stringify(
const frontendEnv = `${frontendEnvironmentVariables}AUTH_PRIVATE_KEY='${JSON.stringify(
AUTH_PRIVATE_KEY
)}`;
)}'`;

// Write the contents into the .env file
fs.writeFileSync("frontend/.env", frontendEnv);
Expand All @@ -45,9 +45,9 @@ async function generateKeys() {
);

// Construct the values of all the necessary keys
const backendEnv = `${backendEnvironmentVariables}HASURA_GRAPHQL_JWT_SECRET=${JSON.stringify(
const backendEnv = `${backendEnvironmentVariables}HASURA_GRAPHQL_JWT_SECRET='${JSON.stringify(
AUTH_PUBLIC_KEY
)}`;
)}'`;

// Write the contents into the .env file
fs.writeFileSync("backend/.env", backendEnv);
Expand Down

0 comments on commit 6137e52

Please sign in to comment.