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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature?]: I would like to be enable to pass a router before ssr, so any microframework (backend) can be bridged #1420

Closed
2 tasks done
dominikzogg opened this issue Mar 26, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@dominikzogg
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Summary 馃挕

The idea is to add the possibility to add an existing api application and integrate it to the vinxi router (with bridging code that has to be written seperatly. So for example /api can be proxied to an existing express/koa what ever api.

Examples 馃寛

No response

Motivation 馃敠

Beeing able to run one server for ssr/spa and seperate api written in node.

@dominikzogg dominikzogg added the enhancement New feature or request label Mar 26, 2024
@dominikzogg
Copy link
Author

I tried to use the onRequest middleware to try to achive, but it seems the status and the headers are getting ignored returning a response.

@dominikzogg
Copy link
Author

I guess the middleware is fine for that, but i got the following issue doing so: #1426

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant