next js frontend
Run the following command in your ./launchpad/next folder
yarn && yarn build && yarn start
change port for nextjs
{
"name": "nextjs",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev -p 3001--turbopack",
"build": "next build",
"start": "next start -p 3001",
"lint": "next lint",
"clean": "rm -rf .next && rm -rf node_modules && npm i"
},
added -p 3001 in dev ans start
npm run start
.htaccess
REWRITERULE ^(.*)$ HTTP://nextjscloudvariation/$1 [P]
Comments
Post a Comment