fork of hey-api/openapi-ts because I need some additional things
at main 46 lines 933 B view raw
1import './globals.css'; 2 3import type { Metadata } from 'next'; 4import { Geist, Geist_Mono } from 'next/font/google'; 5 6import { client } from '@/src/client/client.gen'; 7 8client.interceptors.request.use((options) => { 9 console.log(options); 10}); 11 12client.interceptors.response.use((response, options) => { 13 console.log(response, options); 14 return response; 15}); 16 17const geistSans = Geist({ 18 subsets: ['latin'], 19 variable: '--font-geist-sans', 20}); 21 22const geistMono = Geist_Mono({ 23 subsets: ['latin'], 24 variable: '--font-geist-mono', 25}); 26 27export const metadata: Metadata = { 28 description: 'Generated by create next app', 29 title: 'Create Next App', 30}; 31 32export default function RootLayout({ 33 children, 34}: Readonly<{ 35 children: React.ReactNode; 36}>) { 37 return ( 38 <html lang="en"> 39 <body 40 className={`${geistSans.variable} ${geistMono.variable} antialiased`} 41 > 42 {children} 43 </body> 44 </html> 45 ); 46}