Serve static files from GitHub (with some extras) for Project Helix
Helix Static is a shared microservice for Project Helix that serves static files from GitHub. It includes the following features:
- MIME type detection
- large file dection (large files get redirected and served from the CDN)
- generation of long-cachable URLs for JS and CSS assets
- replacement of URLs in JS and CSS assets with references to long-cacheable URLs (through ESI)
You need node>=8.0.0
and npm>=5.4.0
. Follow the typical npm install
, npm test
workflow.
Contributions are highly welcome.
Deploying Helix Static requires the wsk
command line client, authenticated to a namespace of your choice. For Project Helix, we use the helix
namespace.
All commits to main that pass the testing will be deployed automatically. All commits to branches that will pass the testing will get commited as /helix-services/static@ci<num>
and tagged with the CI build number.