Skip to content

Commit ee87e21

Browse files
authored
Update openapi-fetch NextJS example (#1427)
1 parent 8f5adb3 commit ee87e21

File tree

6 files changed

+102
-400
lines changed

6 files changed

+102
-400
lines changed

packages/openapi-fetch/examples/nextjs/app/layout.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
import React from "react";
12
import type { Metadata } from "next";
23

34
export const metadata: Metadata = {
45
title: "openapi-fetch + Next.js",
56
};
67

7-
export default function RootLayout({ children }: { children: React.ReactNode }) {
8+
export default function RootLayout({
9+
children,
10+
}: {
11+
children: React.ReactNode;
12+
}) {
813
return (
914
<html lang="en">
1015
<body>{children}</body>

packages/openapi-fetch/examples/nextjs/app/page.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import React from "react";
12
import client from "../lib/api";
23

34
async function getFact() {

packages/openapi-fetch/examples/nextjs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"prepare": "openapi-typescript lib/api/v1.json -o lib/api/v1.d.ts"
88
},
99
"dependencies": {
10-
"next": "13.4.19",
10+
"next": "14.0.1",
1111
"openapi-fetch": "workspace:^",
1212
"react": "18.2.0",
1313
"react-dom": "18.2.0"

packages/openapi-fetch/examples/nextjs/public/next.svg

-1
This file was deleted.

packages/openapi-fetch/examples/nextjs/public/vercel.svg

-1
This file was deleted.

0 commit comments

Comments
 (0)