Skip to content

Middleware doesn't seem to work #66

Description

@mdoesburg

Based on what is documented here.

The following config:

image

Results in the following output (.nuxt/graphql.options.mjs):

image

Expected Behavior

I expect to be able to configure middleware or a headers function.

Actual Behavior

The options aren't passed to the client if you use functions (a header object works fine).

Maybe it's not possible to use functions in nuxt.config.ts due to serialization or something. I tried to find something about it in the docs, but the only thing I could find was this.

Is there a different way to configure the middleware? Perhaps at a later stage?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions