Introduction

  • Create an account on Square Cloud, which can be done through the sign up page. You can use your email to create an account.
  • Have an active paid plan on your account. You can view our plans and purchase one according to your needs here.

Creating the squarecloud config file

Learn about: how to make the configuration file for Square Cloud.

The squarecloud.app file is a configuration file that will be used to configure your application; it will be used to define the name, description, version, main file, among other things.

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 squarecloud.app 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: my-subdomain-parameter.squareweb.app
This example host a website without custom startup command
MAIN=index.html
MEMORY=512
VERSION=recommended
DISPLAY_NAME=My simple static website!
SUBDOMAIN=mysite-simple-website
This example use all parameters and custom startup command in a website
MAIN=index.js
MEMORY=512
VERSION=recommended
DISPLAY_NAME=My simple nextjs website!
SUBDOMAIN=mysite-nextjs-website
START=npm run build && npm run start

Support for multiple technologies

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.