Skip to content

Commit ed1f844

Browse files
authored
Link to github app in .env for slugEnv
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.
1 parent da12a57 commit ed1f844

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/keystatic/src/api/api-node.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export async function handleGitHubAppCreation(
7070
KEYSTATIC_GITHUB_CLIENT_ID=${ghAppDataResult.client_id}
7171
KEYSTATIC_GITHUB_CLIENT_SECRET=${ghAppDataResult.client_secret}
7272
KEYSTATIC_SECRET=${randomBytes(40).toString('hex')}
73-
${slugEnvVarName ? `${slugEnvVarName}=${ghAppDataResult.slug}\n` : ''}`;
73+
${slugEnvVarName ? `${slugEnvVarName}=${ghAppDataResult.slug} # https://github.com/apps/${ghAppDataResult.slug}\n` : ''}`;
7474

7575
let prevEnv: string | undefined;
7676
try {

0 commit comments

Comments
 (0)