Trybe migrated one domain, four apps, 833 GB, and 500M monthly requests to Cloud. See how—May 12, 11:30 a.m. ET.Join us

Deploying Your Nuxt.js Site To Laravel Forge

Deploying Your Nuxt.js Site To Laravel Forge

Nuxt.js is a framework for generating static websites using Vue.js. Today we’re we're going to explore how to deploy your Nuxt.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.

Creating The Site

First, we’ll need a site to deploy our application. In this example, we’ll use nuxt-app.laravel.com as our domain name but you should assign the site a domain name that you control, or name the site default to access the site by the server's IP address. As Nuxt.js doesn’t use PHP, we can also change the project type to “Static HTML”. Finally, we will also need to modify the “Web Directory” to /dist. The dist directory is where Nuxt.js generates the compiled version of our website that should be publicly available.

image

Installing The Repository

With our site now configured, the next step is to install the repository that we want to deploy.

We’ll select “Git Repository” and then enter our repository details. As our project is not using PHP, we can disable the “Install Composer Dependencies” option.

Configuring The Deploy Script

With static sites, you should avoid committing the generated site to your Git repository as it’ll very quickly grow in size. Instead, we’ll use our site’s deploy script to generate the site for us.

To do this, we can update our deploy script to do two additional tasks:

  1. Install NPM dependencies. This will include the nuxt command that we need.
  2. Generate the site.

We’ll update our deploy script like so:

Deploy!

With these additional lines we can now deploy our application. Once the deployment has completed, we’ll now be able to access our site.

And there we have it, we've deployed our Nuxt.js site with Forge.

Keep reading

ProductMay 1, 2026

Laravel April Product Updates

Passkeys, debounceable jobs, MCP UI app support, mobile Cloud, and PHP 8.5 in Forge. Here's everything that shipped in April.

Laravel Team

ProductApr 1, 2026

Laravel March Product Updates

Laravel March Product Updates March was a big month for product updates. Laravel 13 brings first-party AI tooling to the framework, Laravel Cloud now has a free trial with no credit card required, and...

Laravel Team

ProductMar 2, 2026

Laravel February Product Updates

Laravel Cloud API & CLI, MySQL 8.4 upgrade notice, Forge MySQL 9, Nightwatch MCP & Linear integration, and new Framework AI updates.

Laravel Team

Laravel is the most productive way to
 build, deploy, and monitor software.

By submitting this form, you agree to our terms. You can opt-out anytime.