Closed AbdelilahOu closed 2 months ago
Hey, I'll try deploying to NuxtHub later!
Also I advice you wait for.... the nuxt module ;)
export default defineNuxtConfig({
modules: ['vue-clerk/nuxt'],
})
This will make it easy for you. Probably releasing this weekend
Ow this is nice it will be worth the wait thank you for the amazing work, this is good news cuz I have been facing this issue for more than a week now đŸ«¡đŸ˜…
Deployed a demo here - https://nuxt-clerk-template.nuxt.dev
You can follow the steps here on Nuxt usage - https://www.vue-clerk.com/guides/nuxt#_3-set-your-environment-variables
The problem was Cloudflare not being able to read the env vars :D Fixed it with Nuxt runtime config
@wobsoriano maaaan cant thank you enough amazing work just amazing, everything works great now thank you...one last question how can I define like public pages and signup and signin pages like the old way ?
how can I define like public pages and signup and signin pages like the old way
I think I don't get this one haha
I guess you used to have a plugin and you define like sign-in and sign-up pages also for the public page it was inside a pages middleware to tell clerk to skip those pages
Oh! You can do that in the config itself:
export default defineNuxtConfig({
modules: ['vue-clerk/nuxt'],
clerk: {
signInUrl: '/sign-in',
signUpUrl: '/sign-up',
}
})
or the recommended way, which will overwrite the config above:
NUXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NUXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
Oh yeah, that's what i was looking for thank you
feel free to close then if we're good!
I have a Nuxt 3.13 app deployed on NuxtHub Its been working fine until I added clerk-vue since then its shows 500 error page and This page is temporarily unavailable message Im using npm@10.5.2 And node@20.10.0 And NuxtHub uses : npm@9.6.7, nodejs@18.17.1 Heres my package.json: