You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: