Source: blog.laravel.com

Deploying your Next.js App To Forge

Category: Laravel, Laravel, PHP, PHP, git, git, nodejs, nodejs, javascript, javascript

Next.js is a React framework developed by Vercel. Today we’ll explain how you can deploy your Next.js application with Laravel Forge. If you’re following along with your own Forge server, ensure that the server is a “App” or “Web” server so that Nginx is installed.

With the Nginx Template created we can now create our site, making sure that we select the “Next.js App” Nginx Template option: Once Forge has created the site, we can install our repository from our chosen Git provider.

Once the Daemon is configured and becomes active, we can visit our site and see that it is now working.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners