Next.js
In order to integrate Mosaic into a Next.js project, the following steps should be performed
Install the dependencies
Using mosaic requires two packages in your Next.js project - the start script package and the runtime package.
Use the new scripts
Replace next
invocations in the scripts
block of your package.json. Such way, Next.js will be launched with additional configurations (Webpack and Babel) required for Mosaic.
package.json
Clean up
next
is a dependency of mosaic-nextjs-scripts
, thus is no longer needed in your project as a direct dependency. It is advised to remove this redundant dependency.
Last updated