5. Deploying your site
TL;DR: In this section, you'll learn how to link your GitHub repository with a Netlify account. This makes any changes you make publish to your domain.

1. Set up
Log in to Netlify: https://app.netlify.com/
Click on 'Add new site' > 'Import an existing project'.
Connect to your Git Provider:
GitHub
.

Pick your repository:
<YOUR_NAME>/loopgate
.Click on 'Deploy site'.
2. Configure
Congratulations, any changes you push to the main
branch on your GitHub repository will be sent to Netlify!
However, there is still one important step: adding the environment secrets to Netlify. Here's how you do that:
Go to your project's the 'env' settings of your project's Netlify page: https://app.netlify.com/sites/YOUR_PROJECT_NAME/settings/env
Click on 'Add a variable', then 'import from a .env file'.
Copy the contents of your
.env
file, and paste them in the input field. Click on 'Import variables'.Once more, check the
/api/env-status
endpoint to see if all secrets are defined. Your site should be live soon at https://YOUR_PROJECT_NAME.netlify.app/api/env-status
Good luck, and have fun Token-Gating with LoopGate!
Last updated