From 1459229ddeecada79e22b61d65cbc903e60ad7fc Mon Sep 17 00:00:00 2001 From: Matthias Nannt Date: Tue, 9 Jul 2024 18:34:39 +0200 Subject: [PATCH] chore: remove NEXTAUTH_URL from docs --- .env.example | 4 ---- .gitpod.yml | 1 - apps/docs/app/developer-docs/contributing/gitpod/page.mdx | 8 ++++---- apps/docs/app/self-hosting/configuration/page.mdx | 1 - 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.env.example b/.env.example index f5cd2d41c3..8e59569551 100644 --- a/.env.example +++ b/.env.example @@ -31,10 +31,6 @@ DATABASE_URL='postgresql://postgres:postgres@localhost:5432/formbricks?schema=pu # You can use: `openssl rand -hex 32` to generate a secure one NEXTAUTH_SECRET=RANDOM_STRING -# Set this to your public-facing URL, e.g., https://example.com -# You do not need the NEXTAUTH_URL environment variable in Vercel. -NEXTAUTH_URL=http://localhost:3000 - # Cron Secret (mandatory) # You can use: `openssl rand -hex 32` to generate a secure one CRON_SECRET=RANDOM_STRING diff --git a/.gitpod.yml b/.gitpod.yml index a7fe60cea2..a7a29f0f1f 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -33,7 +33,6 @@ tasks: gp sync-await init && cp .env.example .env && sed -i -r "s#^(WEBAPP_URL=).*#\1 $(gp url 3000)#" .env && - sed -i -r "s#^(NEXTAUTH_URL=).*#\1 $(gp url 3000)#" .env && RANDOM_ENCRYPTION_KEY=$(openssl rand -hex 32) sed -i 's/^ENCRYPTION_KEY=.*/ENCRYPTION_KEY='"$RANDOM_ENCRYPTION_KEY"'/' .env turbo --filter "@formbricks/web" go diff --git a/apps/docs/app/developer-docs/contributing/gitpod/page.mdx b/apps/docs/app/developer-docs/contributing/gitpod/page.mdx index 502be8f138..632e377259 100644 --- a/apps/docs/app/developer-docs/contributing/gitpod/page.mdx +++ b/apps/docs/app/developer-docs/contributing/gitpod/page.mdx @@ -35,7 +35,7 @@ export const metadata = { 3. To prevent the "Init" task from running indefinitely due to prebuild rules, a cleanup `docker compose down` step i.e. `db:down` is added to `turbo.json`. This step is designed to halt the execution of containers that are currently running. - When the workspace starts: 1. Initializing environment variables. - 2. Replacing `NEXT_PUBLIC_WEBAPP_URL` and `NEXTAUTH_URL` to take in Gitpod URL's ports when running on VSCode browser. + 2. Replacing `NEXT_PUBLIC_WEBAPP_URL` to take in Gitpod URL's ports when running on VSCode browser. 3. Starting the `@formbricks/web` dev environment. **Demo Component Initialization:** @@ -81,8 +81,8 @@ session. of your workspace. - You can use either choose either VS Code Browser or VS Code Desktop editor with the 'Standard Class' for your workspace class. - If you opt for the VS Code Desktop, follow the following steps 1. Gitpod will prompt you to grant access to the VSCode app. Once approved, install the GitPod extension from the -VSCode Marketplace and follow the prompts to authorize the integration. 2. Change the `WEBAPP_URL` and the -`NEXTAUTH_URL` to `https://localhost:3000` +VSCode Marketplace and follow the prompts to authorize the integration. 2. Change the `WEBAPP_URL` to +`https://localhost:3000` ### 4. Gitpod preparing the created Workspace @@ -169,4 +169,4 @@ Here are the ports and corresponding URLs for the services within your Gitpod en className="max-w-full rounded-lg sm:max-w-3xl" /> -These URLs and port numbers represent various services and endpoints within your Gitpod environment. You can access and interact with these services by the Port URL for the respective service. \ No newline at end of file +These URLs and port numbers represent various services and endpoints within your Gitpod environment. You can access and interact with these services by the Port URL for the respective service. diff --git a/apps/docs/app/self-hosting/configuration/page.mdx b/apps/docs/app/self-hosting/configuration/page.mdx index bd69b1ef1b..a1423eaae8 100644 --- a/apps/docs/app/self-hosting/configuration/page.mdx +++ b/apps/docs/app/self-hosting/configuration/page.mdx @@ -18,7 +18,6 @@ These variables are present inside your machine’s docker-compose file. Restart | DATABASE_URL | Database URL with credentials. | required | | | NEXTAUTH_SECRET | Secret for NextAuth, used for session signing and encryption. | required | (Generated by the user) | | ENCRYPTION_KEY | Secret for used by Formbricks for data encryption | required | (Generated by the user) | -| NEXTAUTH_URL | Location of the auth server. By default, this is the Formbricks docker instance itself. | required | http://localhost:3000 | | CRON_SECRET | API Secret for running cron jobs. | required | | | UPLOADS_DIR | Local directory for storing uploads. | optional | ./uploads | | S3_ACCESS_KEY | Access key for S3. | optional | (resolved by the AWS SDK) |