MINIMUM SALEOR VERSION
3.5.10
MINIMUM SALEOR CLI VERSION
1.13
This tutorial will guide you through the process of deploying your Saleor App to Netlify, another popular platform, which provides various tools and features for automating web projects. You can read more about Netlify in the Technologies section.
saleor CLI
with npm i -g saleor
.Registering or logging into Netlify is possible through one of the providers listed at their site. For the purpose of this tutorial, let's use GitHub.
Once logged in, you will be redirected to your dashboard. Here, click Add new site and select Import an existing project.
npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run build
Netlify's build environment does not support pnpm
out of the box. So, with this command we will kindly ask Netlify to use npx
to install pnpm
in the node_modules
folder and run the build
script with it.
NEXT_PUBLIC_SALEOR_HOST_URL
, take the value from .env
file of your appNPM_FLAGS
, set the value to --legacy-peer-deps
.After a while, you will have your site live, which you can check by clicking Open published deploy button in the dashboard.
You can use the url
of your deployed App in the process of i.e. App installation as described in Creating Apps with Saleor CLI.