Skip to content

Commit 2d26560

Browse files
committed
Misc updates to migration guide
1 parent 2748d5d commit 2d26560

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

MIGRATING.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ are generated during scaffolding. For this reason, it is recommended that you re
55

66
This is straightforward if you're using `compute-js-static-publisher` out-of-the-box. Otherwise, read on.
77

8-
# Migrating to v5
9-
108
## KV Store
119

1210
Starting with `v5.0.0`, this tool refers to the KV Store using its finalized product name, "KV Store". References in
@@ -151,12 +149,13 @@ Previous versions of `@fastly/compute-js-static-publish` used [Expressly](https:
151149
assets. `v4` does away with this dependency and implements its own server in the `PublisherServer`
152150
class.
153151

154-
When using `v4`, you can remove the dependency on Expressly by deleting the `@fastly/expressly` entry from `dependencies` or `devDependencies`, in your `package.json` file.
152+
When using `v4`, you can remove the dependency on Expressly by deleting the `@fastly/expressly` entry from
153+
`dependencies` or `devDependencies`, in your `package.json` file.
155154

156155
If your application depended on Expressly for things like middleware, you will need to make further
157156
changes.
158157

159-
## The entry point `src/index.js`
158+
### The entry point `src/index.js`
160159

161160
As of `v4`, the `src/index.js` entry point no longer uses Expressly, and looks like this:
162161

@@ -192,13 +191,13 @@ upgrading from v3.
192191

193192
```js
194193
/** @type {import('@fastly/compute-js-static-publish').StaticPublisherConfig} */
195-
export default {
194+
const config = {
196195
rootDir: './public',
197196
// ... and so on
198197
};
199198
```
200199

201-
* A new key, `server`, was added to the group configurations that pertain to Publisher Server.
200+
* A new key, `server`, was added to group configurations that pertain to Publisher Server.
202201

203202
To migrate this file, you'll need to make the following changes:
204203

0 commit comments

Comments
 (0)