From 9fe220f71e1221f493d7606f9cd7b0b17c1be235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yusuf=20Akg=C3=BCl?= <s86116@bht-berlin.de> Date: Thu, 29 Jun 2023 13:40:42 +0200 Subject: [PATCH] small changes in env and ui --- .env.example | 18 +++++++++--------- components/gweets/components/gweet-actions.tsx | 2 +- components/gweets/components/gweet-options.tsx | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.env.example b/.env.example index 31a6eb7..ae17667 100644 --- a/.env.example +++ b/.env.example @@ -3,12 +3,12 @@ # Public App URL NEXT_PUBLIC_APP_URL="http://localhost:3000" -# Database for connecting to Prisma -DATABASE_URL="file:./dev.db" +# PostgreSQL Database for connecting to Prisma +DATABASE_URL="postgresql://janedoe:mypassword@localhost:5432/mydb?schema=sample" -# Database for connecting to Supabase for media -NEXT_PUBLIC_SUPABASE_URL="YOUR_SUPABASE_URL" -NEXT_PUBLIC_SUPABASE_ANON_KEY="YOUR_SUPABASE_ANON_KEY" +# Uploadthing Object Database for media storage +UPLOADTHING_SECRET="uploadthing_secret" +UPLOADTHING_APP_ID="uploadthing_app_id" # URLs TWITCH_AUTH_BASE_URL="https://id.twitch.tv/oauth2" @@ -16,12 +16,12 @@ IGDB_BASE_URL="https://api.igdb.com/v4" IGDB_IMG_BASE_URL="https://images.igdb.com/igdb/image/upload" # For Twitch Auth to fetch access token -TWITCH_CLIENT_ID="imdb_client_id" -TWITCH_CLIENT_SECRET="imdb_auth_id" +TWITCH_CLIENT_ID="twitch_client_id" +TWITCH_CLIENT_SECRET="twitch_client_secret" -# For NextAuth // use `openssl rand -base64 32` to generate a secret +# For NextAuth NEXTAUTH_URL="http://localhost:3000" -NEXTAUTH_SECRET="secret" +NEXTAUTH_SECRET="nextauth_secret" # For Github Auth GITHUB_CLIENT_ID="github_client_id" diff --git a/components/gweets/components/gweet-actions.tsx b/components/gweets/components/gweet-actions.tsx index 9011202..2fe4fd6 100644 --- a/components/gweets/components/gweet-actions.tsx +++ b/components/gweets/components/gweet-actions.tsx @@ -10,7 +10,7 @@ export const GweetActions = ({ gweet: IGweet; }) => { return ( - <div className="space-x-12 w-60"> + <div className="space-x-12 w-64"> <CommentButton gweet={gweet} /> <RegweetButton gweet={gweet} /> <LikeButton gweet={gweet} /> diff --git a/components/gweets/components/gweet-options.tsx b/components/gweets/components/gweet-options.tsx index df18b1e..2876d53 100644 --- a/components/gweets/components/gweet-options.tsx +++ b/components/gweets/components/gweet-options.tsx @@ -36,7 +36,7 @@ export const GweetOptions = ({ gweet }: { gweet: IGweet }) => { } } - const url = getURL(`/status/${gweet?.id}`); + const url = getURL(`/${gweet?.author.username}/status/${gweet?.id}`); return ( <DropdownMenu open={dropdownOpen} onOpenChange={setDropdownOpen}> -- GitLab