This is my personal url shortener based solely on firebase redirections rules
git clone git@github.com:kidager/jc.tn.git
cd jc.tn
# To edit redirections you'll need to edit `firebase.enc` with `sops`
sops firebase.enc
You will be editing hosting.redirects
array.:
{
"hosting": {
"redirects": [
// ...
{
"source": "/",
"destination": "https://jacem.chaieb.me",
"type": 301
},
// ...
]
}
}
# To deploy you'll need to push the code to the remote repository
# - <master> => production
# - <develop> => beta
# - any open PR => temp-deployment
git push
or if you want to deploy from your local env, you will need to install firebase and then run the following commands
# Decrypt the config file
sops --decrypt firebase.enc > firebase.json
# You may need to login your google account before deploy
make firebase-login
# Deploy to prod
make deploy-prod
# or to beta
make deploy-beta