Tip: Route everything but _dist_ to backend #1946
winkler1
started this conversation in
Show and tell
Replies: 1 comment
-
Thanks! This is a great tip. If you're interested in adding this to our main docs, I'd love for us to have a couple of sentences on this page about Regex and negative look-aheads |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to pass everything but Snowpack's dirs to my backend, and was having to build up a whitelist of all the routes...
This was getting insane, so a better option is to match on anything besides special Snowpack dirs:
Easy peasy lemon squeezy, and easy to maintain!
Beta Was this translation helpful? Give feedback.
All reactions