patchamamma
Dynamic Subdomain Support in Nuxt3
I'm working on implementing dynamic subdomain handling in Nuxt by using a router.options file, as described in this article https://zernonia.keypress.blog/why-keypress. However, I'm facing an issue where the platform page doesn't render correctly when a user visits it through a subdomain, it shows the error
404 page not found: /
.
I rather don't want to use the nuxt-multi-tenancy package.
https://github.com/hieuhani/nuxt-multi-tenancy
4 replies
Nuxt Plugin using `useCookie` composable error.
Hi, I have a custom Auth fetch nuxt Plugin for fetching data behind a authentication. But I keep getting errors about using Nuxt composables.
I am using the useCookie composable. How should I run this function?:
Error:
My custom fetch plugin:
example page that retrieves the data using the authFetch.
Does somebody know how I can fix this? This might be a SRR issue?
7 replies
Fetch Data even on page reload using custom Fetch Composable
I am trying to fetch data in a page. I am using a custom Fetch composable. But the fetch seems only to work when I navigate to the page using route links. This page uses a middleware but I think this is not the main concern
composable useAuthFetch:
9 replies