- Enable Cloud Firestore on Google Cloud Function
- Connect the project to the Firebase
- Add the data to the database, and replace the word in [].
- Collectons: links
- Document: [SHORT_NAME]
- Column:
- link: [REDIRECT_URL]
echo "PROJECT_ID: $PROJECT_ID" >> .env
cd link
go mod vendor
cd ..
gcloud functions deploy link --source=link --entry-point=Link --runtime=go113 --trigger-http --quiet --env-vars-file .env
Edit firebase.json
firebase use $PROJECT_ID
firebase deploy --only hosting
- Go to Project in Firebase
- Select the Hosting
- Create a new domain
- Enter your domain
- And Redirect your domain to current web site