From ed1f844da0fb73fa270c53f1dc42bfa961d7b011 Mon Sep 17 00:00:00 2001 From: Tobias Date: Thu, 21 Nov 2024 06:46:27 +0100 Subject: [PATCH] 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 https://github.com/Thinkmill/keystatic/pull/1359. --- packages/keystatic/src/api/api-node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/keystatic/src/api/api-node.ts b/packages/keystatic/src/api/api-node.ts index b36b9e95b..c5a29c62a 100644 --- a/packages/keystatic/src/api/api-node.ts +++ b/packages/keystatic/src/api/api-node.ts @@ -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 {