Next.js
In order to integrate Mosaic into a Next.js project, the following steps should be performed
Install the dependencies
yarn add @tilework/mosaic-nextjs-scripts @tilework/mosaicnpm install @tilework/mosaic-nextjs-scripts @tilework/mosaicUse the new scripts
{
"scripts": {
- "dev": "next",
+ "dev": "nextjs-scripts dev",
- "build": "next build",
+ "build": "nextjs-scripts build",
- "start": "next start",
+ "start": "nextjs-scripts start",
+ "link": "nextjs-scripts link",
+ "test": "nextjs-scripts test"
}
}Clean up
Last updated