Skip to content

Preview mode for next 14 app router #773

Open
@yustinTR

Description

@yustinTR

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion asked by a usertriageA new issue that needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions