Preparing the project for deployment

Before deploying the project, ensure you update the .env file with the necessary changes.

Key

Description

Key

Description

GOOGLE_API_SERVER_KEY

Your Google API Key (Server) should be configured without domain restrictions.

GOOGLE_API_CLIENT_KEY

Your Google API Key (Client) should be configured with domain restrictions, as it will be used on the client side of the application.

SITE_URL

Your site's URL configured on the server side.

NEXT_PUBLIC_SITE_URL

The same as SITE_URL, but intended for use in the public environment.

NEXT_PUBLIC_CLIENT_SITE_URL

The URL of your site as used on the client side.

NEXT_PUBLIC_CLIENT_SITE_REFERER

The Referer of your site as configured for client-side usage.

NEXT_PUBLIC_AGENT_USERNAME

The username of the agent.

NEXT_PUBLIC_API_KEY

The X-API-Key of the agent, which will be used for specific APIs.

RESO_OAUTH_CLIENT_SECRET

The client secret used to generate a token on the server.

RESO_OAUTH_CLIENT_ID

The client id used to generate a token on the server.


After making these changes, you can proceed with the deployment process.

Deploying a Next.js Project on Ubuntu 20 with Nginx