Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.03 KB

README.md

File metadata and controls

22 lines (15 loc) · 1.03 KB

About this site

pf.is is a vanity domain used by me - Paul Bennett-Freeman - as a "Short Url" host.

Netlify Status

The secret sauce:

By creating the site in Gatsby and hosting on Netlify it takes advantage of gatsby-plugin-netlify to dynamically create redirect urls using the provided createRedirect action inside gatsby-node.js

Datasource

The Strapi data source is configured in gatsby-theme-oddessay where I centrally configure components, styles, plugins that are common to all my sites. The data there has the same field names used by createRedirect - fromPath and toPath - so no additional refactoring the result object is required.

Updates are triggered by a Netlify build Webhook that the Strapi host triggers when a new short URL is added.

It is possibly over engineered 🧐