Learn how to get started on Square Cloud with Node.js
START
field is not defined in the configuration file, Square Cloud will by default run node
with optimization options and specific parameters. If the START
field is defined in the configuration file, the value in the START
field will be executed directly. For more information on configuration file parameters, visit configuration parameters.node_modules
folder does not exist, Square Cloud will run npm install --no-package-lock --no-audit --no-fund
to install dependencies and clean the .npm
folder.squarecloud.app/.config
) and the essential files of your application in a zip file.
squarecloud.app/.config
) file must be located in the root of the zip file. Otherwise, Square Cloud will not be able to find it during deployment.node_modules
: This folder is not required to be sent as it will be created during the installation process in the production environment.package-lock.json
: This file is not necessary because the production environment will install dependencies based on package.json
.node_modules
and package-lock.json
before uploading your project:
node_modules
folder ensures that dependencies are installed by the production environment, resulting in a consistent build free from local system discrepancies.
package.json
, providing a clean start for your application.
TypeScript
, running your project through
ts-node, but it is recommended to always compile to JavaScript
since we are
a production platform.The main file is invalid or corrupted
folder/file.js
.Bad Memory