chore: add eslint plugins for import and className sorting
This commit is contained in:
parent
0fa620719b
commit
d96be6654d
36 changed files with 522 additions and 174 deletions
|
|
@ -1,2 +1,2 @@
|
|||
export { GET, POST } from '@/auth'
|
||||
// export const runtime = 'edge'
|
||||
// export const runtime = 'edge'
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
import { auth } from '@/auth'
|
||||
import { kv } from '@vercel/kv'
|
||||
import { nanoid } from '@/lib/utils'
|
||||
import { OpenAIStream, StreamingTextResponse } from 'ai-connector'
|
||||
import { Configuration, OpenAIApi } from 'openai-edge'
|
||||
|
||||
import { nanoid } from '@/lib/utils'
|
||||
|
||||
// export const runtime = 'edge'
|
||||
|
||||
const configuration = new Configuration({
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import { type Metadata } from 'next'
|
||||
|
||||
import { auth } from '@/auth'
|
||||
import { getChat } from '@/app/actions'
|
||||
|
||||
import { Chat } from '@/components/chat'
|
||||
import { getChat } from '@/app/actions'
|
||||
|
||||
// export const runtime = 'edge'
|
||||
export const preferredRegion = 'home'
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@ import { Metadata } from 'next'
|
|||
import '@/app/globals.css'
|
||||
import { fontMono, fontSans } from '@/lib/fonts'
|
||||
import { cn } from '@/lib/utils'
|
||||
import { Header } from '@/components/header'
|
||||
import { TailwindIndicator } from '@/components/tailwind-indicator'
|
||||
import { ThemeProvider } from '@/components/theme-provider'
|
||||
import { Header } from '@/components/header'
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: {
|
||||
|
|
@ -40,7 +40,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
|
|||
)}
|
||||
>
|
||||
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
|
||||
<div className="h-screen flex flex-col">
|
||||
<div className="flex h-screen flex-col">
|
||||
{/* @ts-ignore */}
|
||||
<Header />
|
||||
<main className="flex-1">{children}</main>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue