This article guides you on creating and hosting a Vue app on Square Cloud
npm create vue@latest
is used to create a new Vue project with the latest version of Vue. The npm create
command is a tool that comes with npm
, the Node.js package manager. It is used to initialize a new or existing npm package.
vue@latest
is a package available on the npm registry that sets up a new Vue project for you. It takes care of all the initial setup, such as creating the project directory, installing necessary dependencies, and configuring basic files.
@latest
is a tag specifying that you want to use the latest version of the vue
package. This ensures you’re always using the most updated version and, consequently, have access to the latest features.
--port 80
parameter in the startup script to ensure your app runs correctly on this port.
START
field is essential to customize the startup command. If you want to build and start your Vite app on Square Cloud, configure the START
field as follows:
package.json
:
mysite.com
) instead of the default URL https://mysite.squareweb.app/
, you need the Standard plan or higher. The subdomain is defined by the SUBDOMAIN field in the configuration file. See: How to set up your custom domain..env
file.