Bypass VPS on selected routes #782
-
Moved from #568 (comment) @TomLadek:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@TomLadek Have you seen https://vite-plugin-ssr.com/api-routes? |
Beta Was this translation helpful? Give feedback.
-
If you use VPS with a middleware, place the VPS middleware last to bypass the catch-all routes. See https://github.com/inlang/inlang/blob/f491813bdfea8856d261b6bcd8525506f153f68c/source-code/server/src/main.ts#L53. We have one server that deploys RPCs, APIs, reverse proxies and vite plugin ssr. Works fabulous! |
Beta Was this translation helpful? Give feedback.
If you use VPS with a middleware, place the VPS middleware last to bypass the catch-all routes.
See https://github.com/inlang/inlang/blob/f491813bdfea8856d261b6bcd8525506f153f68c/source-code/server/src/main.ts#L53. We have one server that deploys RPCs, APIs, reverse proxies and vite plugin ssr. Works fabulous!