Skip to content
/ pf.is Public

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

License

Notifications You must be signed in to change notification settings

OddEssay/pf.is

Repository files navigation

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 🧐

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published