7.0.1 โ€ข Published 6 months ago

@fastly/compute-js-static-publish v7.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@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

6.3.0

7 months ago

6.2.0

11 months ago

7.0.0

6 months ago

7.0.1

6 months ago

7.0.0-beta.4

6 months ago

7.0.0-beta.5

6 months ago

7.0.0-beta.2

6 months ago

7.0.0-beta.3

6 months ago

7.0.0-beta.0

6 months ago

7.0.0-beta.1

6 months ago

6.1.1

1 year ago

6.1.0

2 years ago

6.0.0-beta.0

2 years ago

6.0.0-beta.1

2 years ago

6.0.0-beta.2

2 years ago

6.0.0

2 years ago

5.2.1

2 years ago

5.1.2

2 years ago

5.2.0

2 years ago

5.1.1

2 years ago

5.0.2

2 years ago

5.1.0

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

4.0.0-alpha.3

3 years ago

4.0.0-alpha.4

3 years ago

4.0.0-alpha.1

3 years ago

4.0.0-alpha.2

3 years ago

4.0.0-alpha.0

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago

4.2.1

2 years ago

4.2.0

2 years ago

3.6.0

3 years ago

3.5.0

3 years ago

3.4.0

3 years ago

3.3.0

3 years ago

3.2.1

3 years ago

2.4.0-alpha.0

3 years ago

2.3.0

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.2.2

3 years ago

2.4.2

3 years ago

2.1.0

3 years ago

2.3.0-alpha.2

3 years ago

3.2.0

3 years ago

2.3.0-alpha.0

3 years ago

3.1.0

3 years ago

3.0.1

3 years ago

2.3.0-alpha.1

3 years ago

3.0.0

3 years ago

2.3.0-alpha.4

3 years ago

2.3.0-alpha.5

3 years ago

2.0.0

3 years ago

2.0.0-alpha.2

3 years ago

2.0.0-alpha.1

3 years ago

2.0.0-alpha.0

3 years ago

1.0.0

3 years ago