Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview mode for next 14 app router #773

Open
yustinTR opened this issue Jun 3, 2024 · 0 comments
Open

Preview mode for next 14 app router #773

yustinTR opened this issue Jun 3, 2024 · 0 comments
Labels
question Question asked by a user triage A new issue that needs triage

Comments

@yustinTR
Copy link

yustinTR commented Jun 3, 2024

Package

Not package-specific

Ask the question

I want to have the preview mode in drupal for my nextjs 14 app router project, but i only get internal server errors can someone help me with this. I think there something with my preview/route.ts

`import { NextRequest, NextResponse } from 'next/server';
import { drupal } from 'lib/drupal';

export async function GET(request: NextRequest) {
return drupal.preview(request, NextResponse);
}

export async function POST(request: NextRequest) {
return drupal.preview(request, NextResponse);
}`

Additional context

Add any other context about the question here.

@yustinTR yustinTR added question Question asked by a user triage A new issue that needs triage labels Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question asked by a user triage A new issue that needs triage
Projects
None yet
Development

No branches or pull requests

1 participant