I have created a create react app
with next where i am making changes but it's not rendering instantly. It shows the changes after doing npm run build
and them npm run start
. Here's my package.json right now:
{
"name": "e-commerce",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"watch": "npm run build ./src/app"
},
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.14.1",
"@mui/material": "^5.14.2",
"@types/node": "20.4.5",
"@types/react": "18.2.17",
"@types/react-dom": "18.2.7",
"eslint": "8.45.0",
"eslint-config-next": "13.4.12",
"next": "13.4.12",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "5.1.6",
"watch": "^1.0.2"
}
}
What do i need to do to make real time changes?