Vercel

Create a project, import git repository

Set the root directory to your Nextjs app, in starter kit its src/sxastarter

Set the environment variables, following are for connecting it to preview endpoint.

If you want to connect it to Edge, then use following:

You can keep build options as it is and run the build.

This will take couple of minutes to deploy. Build time vary based on the solution or site you are working with. First the solution will be deployed to preview mode and then you can promote to production.

Netlify

Here you will get options like import, start from template, deploy manually. Say, you are importing it from GitHub.

Set up build settings

Choose the branch to deploy from which you want to deploy, it need not to be default branch in repository.

Set Base directory which is not nothing but your Nextjs app path. In XMCloud starter kit, its src/sxastarter.

Set Publish Directory as /.next

Next step is to add environment variables like we added in Vercel (scroll up to check)

And deploy your solution!!

Hope this helps, good luck!

Leave a comment

Quote of the week

“The only way to do great work is to love what you do. If you haven’t found it yet, keep looking. Don’t settle.”