Deployments

1 - Deploying to Vercel

Please follow this doc - Step 5. Deploying the Ncmaz-Faust to Vercel

2 - Other Hosting Options - If you are a Developer (Self-Hosting)

  1. There are many options for you to deploy your project - https://faustjs.org/guide/how-to-deploy-your-faust-js-app

  2. Because Ncmaz-faust is actually a Nextjs project, there are many ways to implement this project. It's best to follow Nextjs' documentation on how to deploy - https://nextjs.org/docs/pages/building-your-application/deploying

How?

Next.js can be deployed to any hosting provider that supports Node.js.

If you’ve followed the instructions so far, your package.json should have the following build and start scripts:

{
  "scripts": {
    "dev": "next",
    "build": "next build",
    "start": "next start"
  }
}

In your own hosting provider, run the build script once, which builds the production application in the .next folder.

npm run build

After building, the start script starts a Node.js server that supports hybrid pages, serving both statically generated and server-side rendered pages, and API Routes.

npm run start

Tip: You can customize the start script in package.json to accept a PORT parameter by updating it as: "start": "next start -p $PORT".

That’s it! If you have questions about deploying Next.js, you can ask our community on GitHub Discussions.

Last updated