frontside.com joints the revolution #332
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Consolidate our middleware stack that we're using now on a bunch of sites that has here to for been copy-pasted between them. Our current "router" package also has some not-so-optimal aspects to it:
Approach
Upgrade to "revolution" (an html server) which has extracted into a separate library. This consolidates a lot of code, makes twind more accessible and standard via
twing.config.ts
(which is how it is documented on their site) and also improves the caching and proxy behavior to load sites faster.For example, we were not properly forwarding
if-none-match
headers and so none of our proxy responses were being cached, so this adds middleware to do that.Preview
https://frontside--revolutionize.deno.dev/