Skip to content

Commit a38292c

Browse files
authored
Merge pull request #8 from fastly/dora-compute-rename
DEVLIB-1233, DEVLIB-1234: Rename Compute@Edge to Compute
2 parents fa0ce11 + 7f590da commit a38292c

File tree

7 files changed

+443
-435
lines changed

7 files changed

+443
-435
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Park website visitors in a virtual queue to reduce the demand on your origins during peak times.
44

5-
**For more details about other starter kits for Compute@Edge, see the [Fastly developer hub](https://developer.fastly.com/solutions/starters)**
5+
**For more details about other starter kits for Fastly Compute, see the [Fastly Developer Hub](https://developer.fastly.com/solutions/starters)**
66

77
[![A screenshot of the queue page for a ticketing website. It reads: Sometimes we have to restrict the number of people who can access our website at the same time, so that everything works properly. There are 46 people ahead of you in the queue.](screenshot.png)](https://queue-demo.edgecompute.app/index.html)
88

@@ -16,13 +16,13 @@ Park website visitors in a virtual queue to reduce the demand on your origins du
1616
## Getting started
1717

1818
1. If you haven't already, [sign up for Upstash](https://www.npmjs.com/package/@upstash/redis) and create a Redis service.
19-
2. Initialize a Compute@Edge project using this starter kit.
19+
2. Initialize a Compute project using this starter kit.
2020
```sh
2121
fastly compute init --from=https://github.com/fastly/compute-starter-kit-javascript-queue
2222
```
2323
3. Create the `upstash` backend, changing the default hostname to the one provided in the Upstash console.
2424
4. Create the `protected_content` backend by accepting the default example host or setting your own.
25-
5. Populate the `config` dictionary by following the prompts to configure Upstash and set a secret for signing cookies.
25+
5. Populate the `config` config store by following the prompts to configure Upstash and set a secret for signing cookies.
2626
6. Run `fastly compute publish` to deploy your queue.
2727

2828
## Understanding the code
@@ -34,7 +34,7 @@ This starter is fully-featured, and requires some dependencies on top of the [`@
3434

3535
The starter will require a backend to be configured to send requests to once visitors have made it through the queue. For demonstration, the default is a public S3 bucket with some assets and an index page.
3636

37-
The template uses webpack to bundle `index.js` and its imports into a single JS file, `bin/index.js`, which is then wrapped into a `.wasm` file, `bin/index.wasm` using the `js-compute-runtime` CLI tool bundled with the `@fastly/js-compute` npm package, and bundled into a `.tar.gz` file ready for deployment to Compute@Edge.
37+
The template uses webpack to bundle `index.js` and its imports into a single JS file, `bin/index.js`, which is then wrapped into a `.wasm` file, `bin/index.wasm` using the `js-compute-runtime` CLI tool bundled with the `@fastly/js-compute` npm package, and bundled into a `.tar.gz` file ready for deployment to Compute.
3838

3939
## Design
4040

fastly.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ name = "Queuing / Waiting room (JS)"
1919
override_host = "eu1-close-treefrog-37046.upstash.io"
2020
url = "https://eu1-close-treefrog-37046.upstash.io"
2121

22-
[local_server.dictionaries]
22+
[local_server.config_stores]
2323

24-
[local_server.dictionaries.config]
24+
[local_server.config_stores.config]
2525
file = "devconfig.example.json"
2626
format = "json"
2727

@@ -33,19 +33,19 @@ name = "Queuing / Waiting room (JS)"
3333

3434
[setup.backends.upstash]
3535

36-
[setup.dictionaries]
36+
[setup.config_stores]
3737

38-
[setup.dictionaries.config]
38+
[setup.config_stores.config]
3939

40-
[setup.dictionaries.config.items]
40+
[setup.config_stores.config.items]
4141

42-
[setup.dictionaries.config.items.jwt_secret]
42+
[setup.config_stores.config.items.jwt_secret]
4343
description = "Secret for JWT signing"
4444

45-
[setup.dictionaries.config.items.upstash_token]
45+
[setup.config_stores.config.items.upstash_token]
4646
description = "Token for Upstash REST API"
4747

48-
[setup.dictionaries.config.items.upstash_url]
48+
[setup.config_stores.config.items.upstash_url]
4949
description = "URL of Upstash service (e.g. https://eu1-close-treefrog-35041.upstash.io)"
5050

5151
[setup.log_endpoints]

0 commit comments

Comments
 (0)