Skip to content

Commit b271ca9

Browse files
authored
fix(Configuration): correct typo in the setupMiddlewares example (webpack#6352)
The injected middleware is the first in the array, it makes more sense to call it like that.
1 parent 421c244 commit b271ca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/configuration/dev-server.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ module.exports = {
15811581
// Use the `unshift` method if you want to run a middleware before all other middlewares
15821582
// or when you are migrating from the `onBeforeSetupMiddleware` option
15831583
middlewares.unshift({
1584-
name: 'fist-in-array',
1584+
name: 'first-in-array',
15851585
// `path` is optional
15861586
path: '/foo/path',
15871587
middleware: (req, res) => {

0 commit comments

Comments
 (0)