Skip to content

Next App Router Example - Error: The current origin is not supported. Please provide a targetOrigin in the live preview configuration. #1178

@jkettmann

Description

@jkettmann

Describe the bug
After following the instructions in the README of the Next app router example, live preview was not working in Contentful. I only saw the error mentioned in the title.

Solution
In my case, I had to add the target origin to the provider. Consider adding this to the README.

Image

Side note
It would be great to have an additional step after "Step 5. Running the project". Maybe you could explain just shortly that we're supposed to open the content entry, click the live preview button, and then can change the content. Just felt like this is missing for the guide to be complete

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions