-
Notifications
You must be signed in to change notification settings - Fork 75
Open
@danielroe
Description
Reproduction
https://github.com/Baroshem/nuxt-security/blob/main/src/runtime/nitro/plugins/00-routeRules.ts#L11
Description
spotted this while debugging another issue and wanted to let you know that you should pass event to useRuntimeConfig in the nitro context. this is particularly important on platforms like cloudflare.
given that you are using this in a nitro plugin, you might need to load nuxt security lazily (e.g. on first request) rather than on the cold start of the nitro server...