Skip to content

Conversation

@benoitlahoz
Copy link

@benoitlahoz benoitlahoz commented Dec 6, 2024

This PR is related to #324, #249 and #22.

Vite middlewares used in development server for Server-Side Rendering are writing to ExpressRequest's originalUrl (HyperExpress Request's url).

Additionally, they call the writeHead method of the ExpressResponse, which appears to have been removed from Express, but may be used by Vite on the http module response directly.

This PR adds setters for originalUrl and url, and implements the writeHead method on the ExpressResponse.

A working example can be found here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant