diff --git a/.env.example b/.env.example index 31a6eb736513e35d2f52eabc3c3dbc6c3fcdb6c4..ae1766776e592cce03e4e5d2884a4409ba5561f4 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 9011202799ca952df0d97d03f67c50ac86aff017..2fe4fd69c545e64432f29927b36095a328d4aa8d 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 df18b1e70a017b2fcc5545cec9f2c1ae54d79877..2876d53f86bcca91d0765b7d2d1bc03c259a7685 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}>