-
Notifications
You must be signed in to change notification settings - Fork 35
Frontend — Deploying with Vercel
Dennis Ostendorf edited this page Nov 29, 2022
·
5 revisions
On this page, we are looking at how to deploy Gieß den Kiez on Netlify. For this, you will need a GitHub account and a Netlify account.
- Log into GitHub and fork the Gieß den Kiez repo.
- Log into Netlify and click on "New site from git"
- Click on GitHub and select your Gieß den Kiez fork. The
netlify.toml
should prefill the build command field for you. - Click on advanced and on new variable
- Add the environment variables required to run Gieß den Kiez (see the
.env.example
for details) - Click on Deploy site
You successfully deployed your own Gieß den Kiez! Now, we will link the deployment to a better netlify domain name.
- Go to your Netlify Team overview, and click on Sites.
- Select your Gieß den Kiez site and click on Domain settings
- In the Custom domains area, next to the site's url, click on Options and then Edit site name
- In the name modal, choose a new name. This will appear as
https://<MY_NEW_NAME>.netlify.com
- Save. You can also add your custom domain name. Follow these docs to learn how.
Great! You can now access your new site with a cleaner URL. We still need to tell Mapbox to allow out new site to load our Mapbox basemap.
- Log into your Mapbox Account and click on your Gieß den Kiez project.
- Copy the fresh URL of your Netlify site, and add it to the whitelist of allowed URLs. Otherwise, Mapbox won't load the tiles.
- Save. You should now see the map loading when reloading the page.
Perfect. Everything should now work just fine.
- Setup Mapbox
- Setup Supabase
- Setup Vercel (optional, for deploying the Frontend)
- Setup Pipedream (optional, for scheduling Github Actions)