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: API middleware #34

Closed
wants to merge 1 commit into from
Closed

Conversation

rtritto
Copy link
Contributor

@rtritto rtritto commented Dec 15, 2024

@rtritto rtritto changed the title feat: init API middleware feat: API middleware Dec 15, 2024
@brillout
Copy link
Member

As said here, this is out of scope for now. Thus closing.

@brillout brillout closed this Dec 15, 2024
@brillout
Copy link
Member

If you want to contribute (which is very much welcome on our side), it can only work if you trust and follow our leadership.

@rtritto
Copy link
Contributor Author

rtritto commented Dec 15, 2024

As said here, this is out of scope for now. Thus closing.

But how can it be achieved?

The use case is explained here: magne4000/universal-middleware#86 (reply in thread)

There is a way in vike or vike-node (or new feature) to export the ViteDevServer instance to use in [universal-autorouter(https://github.com/node-ecosystem/universal-autorouter) (it already have the viteDevServer.ssrLoadModule implementation for HMR)?

Maybe an example can be added in https://vike.dev/api-routes to help anywone with same use case.

@rtritto rtritto deleted the add-api-middleware branch December 15, 2024 22:57
@brillout
Copy link
Member

Response here.

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

Successfully merging this pull request may close these issues.

2 participants