#Whats the best way to run a startup process when nuxt starts? Like setting some redis cache on start
3 messages · Page 1 of 1 (latest)
Hi 👋 you can try using a nitro plugin https://nitro.unjs.io/guide/plugins
Oh interesting, thank you, I will take a look
What if I want to register a database connection handler, like a Prisma db object and make it a plugin provider helper, like $prisma. So it's easily accessed in my view components, but also how would access it in a nitro plugin?