From 882bc5c2227013b4ad107ed5a33c1831a33ef511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emre=20Erg=C3=BCl?= Date: Sat, 19 Aug 2023 00:10:34 +0300 Subject: [PATCH] update .env.example files with new key value pairs --- README.md | 17 ----------------- apps/gql/.env.example | 2 +- apps/kampus/.env.example | 6 +++--- apps/pasaport/.env.example | 4 ++-- 4 files changed, 6 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 5d210a71..a14eab8b 100644 --- a/README.md +++ b/README.md @@ -52,23 +52,6 @@ npm install - Duplicate `.env.example` files and rename them as `.env` in the following folders: `db/prisma`, `apps/gql`, `apps/kampus`, `apps/pasaport`. -- Make the following changes to the corresponding files. - -```sh -# apps/gql, apps/kampus, apps/pasaport -NEXTAUTH_URL=http://pasaport.localhost.kamp.us:3001/auth -``` - -```sh -# apps/kampus -NEXT_PUBLIC_GQL_URL=http://gql.localhost.kamp.us:3002/graphql -``` - -```sh -# apps/kampus, apps/pasaport -AUTH_COOKIE_DOMAIN='.localhost.kamp.us' -``` - ### 4) Prisma Setup and Database Configuration - Build required packages(`sozluk` and `prisma client`). (It may fail, but it's fine, continue with the next step.) diff --git a/apps/gql/.env.example b/apps/gql/.env.example index efb9c797..5e7dc787 100644 --- a/apps/gql/.env.example +++ b/apps/gql/.env.example @@ -1,3 +1,3 @@ NODE_ENV=development DATABASE_URL=mysql://kampus:kampus@localhost:3306/kampus?schema=public -NEXTAUTH_URL=http://localhost:3001/auth +NEXTAUTH_URL=http://pasaport.localhost.kamp.us:3001/auth diff --git a/apps/kampus/.env.example b/apps/kampus/.env.example index 9bf7cf20..d6d3bb7b 100644 --- a/apps/kampus/.env.example +++ b/apps/kampus/.env.example @@ -1,8 +1,8 @@ # update with the url after running `npm run dev` under `apps/gql` -NEXT_PUBLIC_GQL_URL=http://localhost:4000/graphql -NEXTAUTH_URL=http://localhost:3001/auth +NEXT_PUBLIC_GQL_URL=http://gql.localhost.kamp.us:3002/graphql +NEXTAUTH_URL=http://pasaport.localhost.kamp.us:3001/auth DATABASE_URL=mysql://root:kampus@localhost:3306/kampus -AUTH_COOKIE_DOMAIN='' +AUTH_COOKIE_DOMAIN='.localhost.kamp.us' GITHUB_ID='' GITHUB_SECRET='' DISCORD_ID='' diff --git a/apps/pasaport/.env.example b/apps/pasaport/.env.example index d441b50e..b7a89bac 100644 --- a/apps/pasaport/.env.example +++ b/apps/pasaport/.env.example @@ -1,7 +1,7 @@ NODE_ENV=development -NEXTAUTH_URL=http://localhost:3001/auth +NEXTAUTH_URL=http://pasaport.localhost.kamp.us:3001/auth DATABASE_URL=mysql://root:kampus@localhost:3306/kampus -AUTH_COOKIE_DOMAIN='' +AUTH_COOKIE_DOMAIN='.localhost.kamp.us' GITHUB_ID='' GITHUB_SECRET='' DISCORD_ID=''