forked from Nutlope/roomGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
626 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { Analytics } from "@vercel/analytics/react"; | ||
import { Metadata } from "next"; | ||
import "../styles/globals.css"; | ||
|
||
let title = "Dream Room Generator"; | ||
let description = "Generate your dream room in seconds."; | ||
let ogimage = "https://roomgpt-demo.vercel.app/og-image.png"; | ||
let sitename = "roomGPT.io"; | ||
|
||
export const metadata: Metadata = { | ||
title, | ||
description, | ||
icons: { | ||
icon: "/favicon.ico", | ||
}, | ||
openGraph: { | ||
images: [ogimage], | ||
title, | ||
description, | ||
url: "https://roomgpt-demo.vercel.app", | ||
siteName: sitename, | ||
locale: "en_US", | ||
type: "website", | ||
}, | ||
twitter: { | ||
card: "summary_large_image", | ||
images: [ogimage], | ||
title, | ||
description, | ||
}, | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<html lang="en"> | ||
<body className="bg-[#17181C] text-white"> | ||
{children} | ||
<Analytics /> | ||
</body> | ||
</html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Ratelimit } from "@upstash/ratelimit"; | ||
import type { NextApiRequest, NextApiResponse } from "next"; | ||
import redis from "../../utils/redis"; | ||
import { NextResponse } from "next/server"; | ||
import { headers } from "next/headers"; | ||
|
||
export async function GET(request: Request) { | ||
const headersList = headers(); | ||
// console.log({ headersList }); | ||
const referer = headersList.get("x-real-ip"); | ||
// const ref = headersList.get("Referer"); | ||
console.log({ referer }); | ||
|
||
return new Response(referer); | ||
} |
Oops, something went wrong.