-
Notifications
You must be signed in to change notification settings - Fork 76
access useRuntimeConfig() within handlers #595
Copy link
Copy link
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
latestNuxt Security Version
latest
Default setup used?
Yes, the bug happens even if the security option is not customized
Security options
Reproduction
| const securityConfig = useRuntimeConfig().private |
Description
useRuntimeConfig(event) should be called within an event handler function, as this is required for CF support, and also can trigger rollup bundling issues if called outside it (see nuxt/nuxt#30511)
Additional context
No response
Logs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working