Skip to content

devteamclub/gc-function-seo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Firebase function for seo meta tags

Step 1

Deploy this code to google cloud function https://cloud.google.com/functions/docs/deploying

Set seo as entry point

Step 2

Setup API_URL ENV variable https://cloud.google.com/functions/docs/configuring/env-var

Function call API_URL/seo endpoint that should return json object

{
    "title": "page title",
    "desc": "page description",
    "image": "page thumbnail"
}

Step 3

Update firebase.json Set rewrite on routes where you would like to get dynamic tags

"rewrites": [
  {
    "source": "**/event/**",
    "function": "yourFunctionName"
  },
]

About

Dynamic metatags for website via firebase function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •