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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners