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

SSR #1

Open
gaetan-puleo opened this issue May 24, 2024 · 5 comments
Open

SSR #1

gaetan-puleo opened this issue May 24, 2024 · 5 comments

Comments

@gaetan-puleo
Copy link

I think the Router is not working on the server side.

I tried to set ssrPath nothing was rendered.

@apvarun
Copy link
Owner

apvarun commented May 29, 2024

@gaetan-puleo Can you tell me the usecase you are addressing this with? (sample repo would be best)
wouter is useful only for routing in hono's client components.

@gaetan-puleo
Copy link
Author

Sorry for the delay.

Wouter can used on the serverside too.

You can path a ssrPath like this

image

@gaetan-puleo
Copy link
Author

It allow to support SSR and client side rendering at the same time.

@gaetan-puleo
Copy link
Author

I will create a small repo to show you.

@gaetan-puleo
Copy link
Author

@apvarun here the minimal repo https://github.com/gaetan-puleo/wouter-hono-ssr-not-working

I didn't try to use client side router here. It's only to show you how the SSR should works with Wouter Hono

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

No branches or pull requests

2 participants