Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

runtime config usage might break on cloudflare #632

Open
Labels
bugSomething isn't working
@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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /