Introduction

To host websites and APIs on Square Cloud, it’s essential to follow proper configuration procedures and meet the necessary technical prerequisites. This comprehensive guide will present the entire professional implementation process.

Technical Prerequisites

  • Square Cloud Account: Create your account through the signup page, using your email address for registration.
  • Active Paid Plan: It’s necessary to have a paid plan to ensure adequate resources and optimized performance. Check our available plans and choose the most suitable for your needs.

Square Cloud Configuration File

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

The squarecloud.app file is an essential configuration file that will be used to configure your application on Square Cloud. It defines name, description, version, main file, among other fundamental configurations.

Essential Parameters for Websites

The website port must be configured as 80. For static websites, it’s not necessary to define the START parameter. Main parameters of the squarecloud.app configuration file:
  • SUBDOMAIN: For website hosting, define this parameter with your desired subdomain.
  • START: Custom startup command (when necessary).
The website URL will be: my-subdomain-parameter.squareweb.app

Configuration Examples

Example 1: Static website without custom startup command
MAIN=index.html
MEMORY=512
VERSION=recommended
DISPLAY_NAME=My simple static website!
SUBDOMAIN=mysite-simple-website
Example 2: Website with all parameters and custom startup command
MAIN=index.js
MEMORY=512
VERSION=recommended
DISPLAY_NAME=My simple Next.js website!
SUBDOMAIN=mysite-nextjs-website
START=npm run build && npm run start

Support for Multiple Technologies

Square Cloud offers comprehensive support for various web development technologies, providing flexibility in choosing the most suitable tech stack for your project.

Final Considerations

Following these technical guidelines, you’ll have your website or API running optimally on Square Cloud. The platform offers robust and reliable infrastructure to ensure your application operates with maximum performance. If you continue facing technical difficulties, our specialized support team is available to assist you. Contact us and we'll be happy to help you resolve any issue.