Configure your static website
Last updated
Last updated
Connect Your Git Account Ensure that your Git account is linked to the deployment platform.
Connect Your Repository Select the repository you wish to use for your website.
Select "Static" from Toggle Choose the "static" option to specify the type of site you are deploying.
Fill the Deployment Form
Select the branch to deploy.
Enable auto-deploy if you want to deploy automatically on git push
.
Specify the install command, build command, and output directory.
Add Environment Variables
Place any environment variables in the env/envfile
directory.
Override Existing Configuration If needed, override configurations by following Pre-defined ENV for static websites
Add Secrets
Store any necessary secrets in the secrets/secrets
file.
Navigate to Domain Settings Go to the domain settings section within your deployment platform's dashboard.
Add a Custom Domain Click on the option to add a custom domain and enter your domain name.
Update DNS Settings
Follow the provided instructions to update your DNS settings with your domain registrar. Typically, this involves adding an A
record pointing to the IP of your deployment platform and/or a CNAME
record.
Verify Domain Ownership Verify ownership by either adding a specified DNS record or by placing a verification file in your site’s root directory.
Enable HTTPS Once the domain is verified, automatic HTTPs certificate will be rolled out.
Finalize the Setup Save your configurations and wait for DNS propagation, which can take up to 48 hours. Your custom domain should now be active.
"Purge Cache" if deployment is successful but your changes are not reflected
Access the Deployment Platform Log in to your deployment platform where your repository is connected.
Navigate to Your Project Go to the project you wish to deploy.
Locate the Commit Browse the commit history to find the specific commit you want to deploy.
Trigger Deployment Select the commit and trigger a deployment by clicking on the deploy or redeploy button associated with that commit.
Monitor the Deployment Process Follow the deployment logs to ensure the specific commit is deployed successfully.
Verify Deployment Once the deployment is complete, verify the changes on your site to ensure the correct version is live.
"Purge Cache" if deployment is successful but your changes are not reflected