According to Netlify's documentation, Netlify is an enterprise-ready platform, with plug&play feature to help customers build fast and reliable web experiences.
We will discuss how to configure Netlify as your default cloud provider with Blob storage, Netlify sites and Netlify functions to deploy and version your application with Zephyr Cloud, deliver content to your users using Netlify's Blob storage, Functions and Edge network.
Launch Week 1 - Netlify's Blog on how to use Zephyr with Netlify.
To deploy a Micro-frontend application on Netlify, the bare minimum set up will only require you to configure one site on Netlify.
In the land of Micro-Frontend and how Zephyr deploy applications, we map each individual components and serve them with edge functions via the wildcards of one domain (so you don't need to configure multiple site project on Netlify for a Micro-Frontend application).
*.domain.com
- to ensure Zephyr's feature like versioning, rollback/roll-forward and more are available. (You will need to contact Netlify Support for a wildcard domain)Because Zephyr Cloud handles deployments on your behalf, it needs the ability to create subdomains on your behalf, which means that you need to be able to configure a wildcard CNAME
record on your domain, and you can’t use dynamic domain features from Netlify, such as branch deploys or deploy previews.
Wildcard subdomains can be activated via contacting Netlify support, but there are a few requirements:
*.bundlercorp.com
where *
can be your wildcard subdomain, the primary domain must be www.bundlercorp.com
(www can be replaced with any string).*
as the hostname or any other value that you want. The value of this DNS entry should be the Netlify site address.random-very-long-string.netlify.app
.bundlercorp.com
(an example domain) purchased from Netlify's team page.Please contact Netlify support to enable wildcard domain.
Below is an example of bundlercorp.com
's DNS settings:
Type | Name | Value | TTL |
---|---|---|---|
NETLIFY | bundlercorp.com | random-very-long-string.netlify.app | 3600 |
NETLIFY | www.bundlercorp.com | random-very-long-string.netlify.app | 3600 |
CNAME | *.bundlercorp.com | random-very-long-string.netlify.app | 3600 |
Name servers are auto-managed by Netlify if you register a domain from Netlify, otherwise the value should be similar below. Read more.
Below is an example of bundlercorp.com
's name servers:
Name servers |
---|
dns1.p09.nsone.net |
dns2.p09.nsone.net |
dns3.p09.nsone.net |
dns4.p09.nsone.net |
https://app.netlify.com/sites/{site-name}/domain-management
):Domain | Description |
---|---|
bundlercorp.netlify.app | Netlify subdomain |
www.bundlercorp.com | ⭐️ Primary domain |
bundlercorp.com | Redirects automatically to primary domain |
Read more about HTTPS settings on Netlify.
If your domain has TLS/SSL certificate verified for both wildcard domain and primary domain, you should see the settings like so:
*.bundlercorp.com
,bundlercorp.com
After sign in, click on your selected organization.
Before you move to the next step, you will need two details and one DNS configuration from Netlify:
1. API token
2. Site ID
3. Custom domain settings
Please follow custom domain configuration in Pre-requisites section on this page.
Below are the input fields on Zephyr's dashboard to enable Netlify as deployment cloud after clicking Add integration under Netlify:
A unique name within your organization. It will be used as a slug.
The name of integration shown on dashboard.
Obtained from Netlify. The instruction above should walk you through how to get your API token.
Obtained from Netlify.
Make every repository deployed through Zephyr attempt to deploy through this integration setting. This won't change until you delete this integration or add new integration as default.
Navigate to our recipes to try one of the application, you should see your next deployment deployed through your designated domain! (if not come talk to us)
After you add Netlify as your cloud provider on Zephyr, several properties will be modified and added on your Netlify site project.
Three blob storage space will be added:
site:ze_snapshots
site:ze_files
site:ze_env
An environment variable name JWT_SECRET
will be created and being used by Zephyr to validate your access right when you are deploying applications.
ze_worker_for_upload
(used for uploading assets)ze_worker_for_serve
(used for streaming your application assets and deliver it to browser).Once you finish your first deployment on Netlify, you can inspect your assets on Netlify.
Sign in to your Netlify team's main dashboard page and select your site project, you can then click on Blobs and then select site:ze_files to inspect your assets.
site:ze_files
stores your actual assets.site:ze_envs
stores you application's environment, access right etc.site:ze_snapshot
stores your application's snapshots comparing against previous build.rm -rf ~/.zephyr
before deployment.At the moment, the only way to remove all the deployment assets, information and previous configuration on Netlify is by deleting your site project.
On your site project's dashboard, click on Site configuration on the left, scroll down to find Delete site.
Log into your account and select the organization associated with the deployment integration you want to delete.
Select Settings on the organization dashboard. On the left side choose Deployment Integration.
Choose the name of integration you want to delete and select Remove on the next page.