MinecraftStorage
MinecraftStorage
NNuxt
Created by MinecraftStorage on 10/18/2024 in #❓・help
Can you deploy Nuxt as SSR on Cloudflare pages?
It seems Cloudflare pages is only for staticly generated (pre generated) nuxt projects. UseFetch does not work on the server and instead gets called on the client.
15 replies
NNuxt
Created by MinecraftStorage on 10/18/2024 in #❓・help
Can you deploy Nuxt as SSR on Cloudflare pages?
Did you get the website running in the SSR mode on Cloudflare pages?
15 replies
NNuxt
Created by MinecraftStorage on 10/18/2024 in #❓・help
Can you deploy Nuxt as SSR on Cloudflare pages?
Thank you so much
15 replies
NNuxt
Created by MinecraftStorage on 6/28/2024 in #❓・help
How to assign a middleware to custom routes?
So bad that Nuxt documentation doesn't include that information. I've found it though ChatGPT
6 replies
NNuxt
Created by MinecraftStorage on 6/28/2024 in #❓・help
How to assign a middleware to custom routes?
You can attach the meta property in router.options.js file to a route or a parent route. Like this:
{
path: "create",
component: create,
name: "create",
meta: {
middleware: ["auth"]
}
}
{
path: "create",
component: create,
name: "create",
meta: {
middleware: ["auth"]
}
}
So this meta property can accept all properties available to the definePageMeta function, including middleware.
6 replies
NNuxt
Created by MinecraftStorage on 6/28/2024 in #❓・help
How to assign a middleware to custom routes?
I've found a much better solution that actually is pretty straightforward
6 replies