From 4a9f2b1b02ca4be041a265d977142fc86e57a25d Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Thu, 2 Feb 2023 14:38:06 +0100 Subject: [PATCH] :pencil: Add google sheets callback URL instruction Closes #286 --- apps/docs/docs/self-hosting/configuration/builder.mdx | 10 +++++++--- apps/docs/docs/self-hosting/configuration/viewer.mdx | 6 +++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/apps/docs/docs/self-hosting/configuration/builder.mdx b/apps/docs/docs/self-hosting/configuration/builder.mdx index f7b20141e..28e6d8750 100644 --- a/apps/docs/docs/self-hosting/configuration/builder.mdx +++ b/apps/docs/docs/self-hosting/configuration/builder.mdx @@ -53,10 +53,14 @@ Used for Google Fonts (Optional): https://console.developers.google.com/apis/credentials -The "Authorized redirect URIs" used when creating the credentials must include your full domain and end in the callback path. For example, +The "Authorized redirect URIs" used when creating the credentials must include your full domain and end in the callback path: -- For production: https://{YOUR_DOMAIN}/api/auth/callback/google -- For development: http://localhost:3000/api/auth/callback/google +- For production: + - https://{YOUR_DOMAIN}/api/auth/callback/google + - https://{YOUR_DOMAIN}/api/credentials/google-sheets/callback +- For development: + - http://localhost:3000/api/auth/callback/google + - http://localhost:3000/api/credentials/google-sheets/callback ## GitHub (Auth) diff --git a/apps/docs/docs/self-hosting/configuration/viewer.mdx b/apps/docs/docs/self-hosting/configuration/viewer.mdx index 265470410..a5dc423c9 100644 --- a/apps/docs/docs/self-hosting/configuration/viewer.mdx +++ b/apps/docs/docs/self-hosting/configuration/viewer.mdx @@ -41,10 +41,10 @@ Used when executing a Google Sheets block. Make sure to set the required scopes https://console.developers.google.com/apis/credentials -The "Authorized redirect URIs" used when creating the credentials must include your full domain and end in the callback path. For example, +The "Authorized redirect URIs" used when creating the credentials must include your full domain and end in the callback path: -- For production: https://{YOUR_DOMAIN}/api/auth/callback/google -- For development: http://localhost:3000/api/auth/callback/google +- For production: https://{YOUR_DOMAIN}/api/credentials/google-sheets/callback +- For development: http://localhost:3000/api/credentials/google-sheets/callback ## S3 Storage (File upload input)