N
Nuxt9mo ago
RicharDVD

Check inside plugin if running in dev mode

I have created a plugin that sends nuxt/vue errors using some hooks to Sentry. I do however not want to send these errors if I started the server in dev mode. What is the best way to check if I'm in dev move inside my plugin? (I do have both a regular Nuxt (client) plugin and a Nitro plugin). Is using environment variables the best way to check in this case?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server