Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: middleware implementation #109

Closed
wants to merge 20 commits into from
Closed

feat: middleware implementation #109

wants to merge 20 commits into from

Conversation

Industrial
Copy link
Contributor

No description provided.

@deckchairlabs
Copy link
Member

Looks like our server processes are never closing when running puppeteer tests.

@deckchairlabs
Copy link
Member

Fixed the e2e issues, so tests should pass now

@deckchairlabs
Copy link
Member

Should shortCircuit just be a response? Like if I wanted to just short circuit the middleware chain, I could just pass a new response to next?

@deckchairlabs
Copy link
Member

Is there a way to modify a response thats been handled by an internal middleware?

@dburles
Copy link
Contributor

dburles commented Apr 30, 2022

We should just expose requestHandler so it can be imported and chained where it's needed.

@mashaal mashaal added this to the v3.0.0 milestone May 1, 2022
@mashaal mashaal added the enhancement New feature or request label May 1, 2022
src/server/middleware/transpileSource.ts Outdated Show resolved Hide resolved
src/server/middleware/transpileSource.ts Outdated Show resolved Hide resolved
workspace/server.js Outdated Show resolved Hide resolved
@dburles dburles added the needs discussion Needs further discussion label May 5, 2022
@mashaal mashaal closed this May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs discussion Needs further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants