Skip to content

[Bug] Next runtime middleware demo not working correctly #1639

@ericapisani

Description

@ericapisani

While working on #1634 I noticed that the path for the 'Cookies API' in demos/middleware/middleware.ts wasn't being reached where the netlifyCookie is set, and this behaviour is happening on the main branch.

This seems to happen for most of the routes listed within the middleware file (the first conditional - /static is working correctly however).

Determine why the behaviour within the middleware demo isn't working as expected, where the user is able to visit the routes (correctly) but some of the side effects of the middleware are not being run (like the setting of the cookie).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions