@fastly/compute-js-static-publish v7.0.1
@fastly/compute-js-static-publish
Fastly Compute + KV Store for static websites and web apps.
This CLI tool helps you:
- โ Deploy static sites to Fastly Compute with zero backend
- ๐ฆ Store files in Fastly KV Store efficiently
- ๐ Publish to named collections (
live
,preview-42
, etc.) - ๐ Switch between collections at runtime
- ๐งน Clean up old or expired assets
Quick Start
Create a directory for your project, place your static files in ./public
, then type:
npx @fastly/compute-js-static-publish@latest --root-dir=./public --kv-store-name=site-content
๐ง Local Preview
cd compute-js
npm install
npm run dev:publish # 'publish' your files to the simulated local KV Store
npm run dev:start # preview locally
Serves your app at http://127.0.0.1:7676
, powered by a simulated KV Store.
๐ Deploy to Production
When you're ready to go live, create a free Fastly account if you haven't already, and then:
cd compute-js
npm run fastly:deploy # deploy the app
npm run fastly:publish # upload your static files
In the future, unless you have further changes to make to your app itself, you can upload further updates to your static files:
cd compute-js
npm run fastly:publish # upload your static files
Features
- Named collections for previews, staging, production
- SPA + fallback handling
- Precompressed Brotli/gzip support
- CLI tools for publish, promote, and cleanup
Documentation
๐ Full documentation available on GitHub:
https://github.com/fastly/compute-js-static-publish
7 months ago
11 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago