Home
Basics
Introduction Environment setup Project structure Pages CSS in NextJS JavaScript in NextJS Layouts Data Fetching Routing API Routes Metadata and SEO Environment Variables OptimizationsAdvanced
Dynamic Importing Blog using md files Authentication in NextJS Mongodb and NextJS Stripe and NextJSMiscellaneous
Deploying NextJS app on Heroku NextJS Templates NextJS Interview QnADeploying the NextJS app on Heroku
You can use heroku cli to deploy the NextJS app on Heroku. First download Heroku CLI and then login to Heroku throughheroku login
command.
heroku git:remote -a appName
git remote -v
git subtree push --prefix=js-nodejs/awesometut/ heroku main
heroku git:remote -a appName
- This command will add remote for heroku repogit remote -v
- Check if heroku repo is listed in remotesgit subtree push --prefix=js-nodejs/awesometut/ heroku main
- Push the changes from main branch to heroku. Here I am using subtree but you can have simple push command without prefix if you are not using git subtree.
Web development and Automation testing
solutions delivered!!