@queue-it/fastly 2.0.0-beta.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -65,14 +65,16 @@ There are two methods of installation:
65
65
  You can name the host **origin** or whatever you choose.
66
66
  - Create a host that has the hostname of `{yourCustomerId}.queue-it.net` and name it **queue-it**.
67
67
  Edit the host, go to advanced options and fill in the same hostname in **Override host**
68
- - Open up the service in Fastly and go to **Dictionaries** and create a new dictionary named `IntegrationConfiguration`
69
- .
70
- Add the following items in the dictionary:
68
+ - Go to **Resources -> Config stores** and create a new config store named `IntegrationConfiguration`.
69
+ - Add the following items in the config store (you can find these values in the Go Queue-It self-service platform):
71
70
  - customerId: Your customer ID
72
71
  - apiKey: The API key for your account
73
72
  - secret: Your KnownUserV3 secret
74
- - queueItOrigin: The name of the queue-it origin, in this case it's `queue-it`
75
- You can find these values in the Go Queue-It self-service platform.
73
+ - queueItOrigin: The name of the queue-it host, in this case it's `queue-it`
74
+ - Go to **Linked Services** and click on `Link Service`
75
+ - Select your service and click `Next`
76
+ - Click `Link and activate` to link the `Config store` to your service. It should generate a new version
77
+ - You can verify that the `Config store` has been linked by going to your service and see it in the section `Config stores`
76
78
  - You need to add some code that uses this connector. Here is an example:
77
79
 
78
80
  ```ts
@@ -81,7 +83,7 @@ import {onQueueITRequest, IntegrationDetails, onQueueITResponse} from "@queue-it
81
83
 
82
84
  const req = Fastly.getClientRequest();
83
85
 
84
- // This is optional and can be null if it's specified in your Dictionary
86
+ // This is optional and can be null if it's specified in your Config Store
85
87
  const integrationDetails = new IntegrationDetails(
86
88
  "QueueItOriginName",
87
89
  "CustomerId",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@queue-it/fastly",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0",
4
4
  "description": "Queue-it connector for Fastly",
5
5
  "main": "src/index.ts",
6
6
  "author": "devs@queue-it.com",