-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update content-source-maps-graphql example
- Loading branch information
1 parent
4387a88
commit 30ac46a
Showing
5 changed files
with
18 additions
and
14 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
examples/content-source-maps-graphql/app/api/disable-draft/route.ts
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { draftMode } from 'next/headers'; | ||
|
||
export async function GET(request: Request) { | ||
draftMode().disable(); | ||
(await draftMode()).disable(); | ||
return new Response('Draft mode is disabled'); | ||
} |
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 |
---|---|---|
@@ -1,19 +1,23 @@ | ||
{ | ||
"private": true, | ||
"scripts": { | ||
"dev": "next dev", | ||
"dev": "next dev --turbopack", | ||
"build": "next build", | ||
"start": "next start" | ||
}, | ||
"dependencies": { | ||
"@contentful/live-preview": "^4.2.2", | ||
"@contentful/live-preview": "^4.6.0", | ||
"@types/node": "20.2.3", | ||
"@types/react": "18.2.7", | ||
"@types/react-dom": "18.2.4", | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1", | ||
"graphql-request": "^6.1.0", | ||
"next": "14.2.10", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"next": "15.0.4", | ||
"react": "19.0.0", | ||
"react-dom": "19.0.0", | ||
"typescript": "5.0.4" | ||
}, | ||
"overrides": { | ||
"@types/react": "19.0.1", | ||
"@types/react-dom": "19.0.1" | ||
} | ||
} |