-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
Creating Server Components Causes an Error #734
Comments
Hi @Plinpod 👋 We have not added support for Server components yet. I assume that we will need to add support for this by accessing the session via Due to this, I will categorize this as a feature request, rather than a bug. As mentioned above, I assume we will need to add a new composable that lets you access the server side session in server components. I think adding support for this would be super cool, but also a bit tricky. Therefore, I will add this prioritize this feature a bit lower. As a workaround, could you try and categorize all authentication related logic inside the server component as a Client Component that does not get rendered on the server? |
Environment
Reproduction
Test.server.vue
Describe the bug
When trying to create a server component or a NuxtIsland by adding
server
to a page or componentTest.server.vue
You get the following error on the server
Server Error [GET] "http://localhost/api/auth/session?callbackUrl=http:%2F%2Flocalhost%2F__nuxt_island%2FTest_zILZnACY7W.json": <no response> fetch failed
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: