Hosting your website or API on Square Cloud is a breeze with the configuration file. This file allows you to customize and configure your application with essential parameters like the main file, memory allocation, version, display name, and more.

Creating the configuration File

To get started, create your configuration file in the root directory of your project.

Important website parameters

The website port needs to be 80, if you are using a static website, you don’t need to set the START parameter.

In configuration file:

  • SUBDOMAIN: If you are hosting a website, set this parameter to your desired subdomain.
  • START: A custom startup command (if needed).
Website url will be:
This example host a website without custom startup command
DISPLAY_NAME=My simple static website!
This example use all parameters and custom startup command in a website
DISPLAY_NAME=My simple nextjs website!
START=npm run build && npm run start

By following these steps, you’ll have your website or API up and running smoothly on Square Cloud. If you encounter any issues or need further assistance, don’t hesitate to reach out to our support team.