Creating the frontend package
In this package, we will implement a multi-site system that will help us have more than one site with the same code base.
Let’s see how our package.json
file should look for this package:
{
"name": "@web-creator/frontend",
"version": "1.0.0",
"scripts": {
"dev": "cross-env NODE_ENV=development npm run next:dev",
"build": "next build",
"next": "ts-node src/server.ts",
"next:dev": "ts-node src/server.ts",
"lint": "npm run --prefix ../../ lint",
"lint:fix": "npm run --prefix ../../ lint:fix",
"typecheck": "tsc --noEmit"
},
"author": "Carlos Santana",
"license": "ISC",
"peerDependencies": {
"react": ">=17.0.2",
"react-dom"...