Deploying to Render
This deployment example refers to Render.
Before you get started, you need to have:
In your Custom Application config, provide the Custom Application ID you got when you configured the Custom Application in the Merchant Center.
Moreover, you need to provide the production URL from your Render site. You can keep the standard Render URL
https://<site>.onrender.com or provide your custom domain.
Using environment variables
In case you want to avoid hardcoding certain values, for example the Application ID, or the Project key, you can use variable placeholders in your Custom Application config.
Connect Render with GitHub
The easiest way to deploy to Render is to use the GitHub integration.
Follow the steps in Render to create a new static site and import a new Git repository.
Make sure to also install the Render GitHub App to grant access to your repository.
Configuring build settings
In the Render setup process you need to configure the following things:
Override the Build command with:
package.jsonmake sure to have the following scripts defined:
Override the Publish directory with:
If possible, select or specify the Node.js Version. Recommended version is
If your Custom Application config requires environment variables, make sure to provide them in your Render site > Environment.
Configuring rewrite rules
A Custom Application is a Single-Page Application that uses client-side routing. Therefore, we need to instruct Render to rewrite all requests to serve the
Test your deployment
In the Merchant Center you can now follow the steps to install the Custom Application and access it in your Projects.