## Deployment of the NextJS app

You need to have the vercel CLI installed. You can learn more about this here .

Make sure you have the server deployed as well, because once you deploy the NextJS app to vercel, you will need to provide a public accesible URL for the server

After you have a public accessible URL for the server, make sure to create a `.env.production` file in the root directory of the project and add copy the contents of the `.env.development` file to the `.env.production` file.

You will need to change the `NEXT_PUBLIC_SERVER_URL` and the `NEXT_PUBLIC_SERVER_WS_URL` .

After installing the vercel CLI, you can deploy the app by running the following command inside the root directory of the project:

    vercel

or, (if you want to deploy the app to production)

    vercel --prod

This will automatically deploy the app to the vercel platform and give you a URL where you can access the app.

P.S: Do not forget to check if the deployed website has access to google maps API. It is recommended to use a google maps api key that is restricted to run only on your custom domain, so that nobody can steal it from your website and use it for their own purposes.

Publishing