Edge
This commit is contained in:
parent
0846554fa2
commit
09ac763958
2 changed files with 4 additions and 4 deletions
|
|
@ -6,6 +6,9 @@ import { db, chats } from "@/lib/db/schema";
|
|||
import { eq } from "drizzle-orm";
|
||||
import { Chat } from "@/app/chat";
|
||||
import { Message } from "ai-connector";
|
||||
|
||||
export const runtime = "edge";
|
||||
export const preferredRegion = "home";
|
||||
export interface ChatPageProps {
|
||||
params: {
|
||||
id: string;
|
||||
|
|
@ -23,9 +26,6 @@ export async function generateMetadata({
|
|||
};
|
||||
}
|
||||
|
||||
export const runtime = "edge"; // default
|
||||
export const preferredRegion = "home";
|
||||
|
||||
export default async function ChatPage({ params }: ChatPageProps) {
|
||||
const session = await auth();
|
||||
const chat = await db.query.chats.findFirst({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue