Skip to content

Commit

Permalink
Link to github app in .env for slugEnv
Browse files Browse the repository at this point in the history
Finding the link to the app on GitHub to edit the settings (like adding a `redirect_uri`) is hard. Having the link right where the app is defined means most users will not have to read the docs from Thinkmill#1359.
  • Loading branch information
tordans authored Nov 21, 2024
1 parent da12a57 commit ed1f844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/keystatic/src/api/api-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export async function handleGitHubAppCreation(
KEYSTATIC_GITHUB_CLIENT_ID=${ghAppDataResult.client_id}
KEYSTATIC_GITHUB_CLIENT_SECRET=${ghAppDataResult.client_secret}
KEYSTATIC_SECRET=${randomBytes(40).toString('hex')}
${slugEnvVarName ? `${slugEnvVarName}=${ghAppDataResult.slug}\n` : ''}`;
${slugEnvVarName ? `${slugEnvVarName}=${ghAppDataResult.slug} # https://github.com/apps/${ghAppDataResult.slug}\n` : ''}`;

let prevEnv: string | undefined;
try {
Expand Down

0 comments on commit ed1f844

Please sign in to comment.