Skip to content

Integrating Paperbits with Next.Js #41

Open
@mck-harbir

Description

@mck-harbir

I have been exploring the integration of Paperbits with Next.js, with the aim of leveraging Paperbits' editor to design pages using registered components. In my initial progress, I successfully opened the Paperbits editor within my Next.js application and utilized it to design pages with the registered components. However, it is important to note that I was only able to achieve integration between Paperbits and Next.js to a certain extent by using compiled paperbits code, necessary for opening the editor, in Next.js.

I have encountered a challenge when it comes to integrating the changes made to the Next.js pages using the editor. These changes are stored in demo.json file, which Paperbits utilizes to serve the website in publish mode. The difficulty arises from the differing logic employed by Paperbits and Next.js for their respective publish and build modes.

Additionally, I would like to inquire if there is a way to integrate Paperbits' webpack configuration into my Next.js application. This would help ensure a seamless integration between the two frameworks.

Given this situation, I would greatly appreciate your assistance in guiding me on how to proceed further in this case. I am seeking a clearer understanding of the steps required to achieve successful integration between Paperbits and Next.js, including any necessary adjustments to the webpack configuration. Thank you for your support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions