Skip to content

openapi in nitro only work in local development do not work when deploy with cloudflare pages #2418

@hoanglinh9955

Description

@hoanglinh9955

Environment

  • nuxt: 3.11.2
  • nitro: 2.9.6
  • nitro-cloudflare-dev: 0.1.4

Reproduction

Describe the bug

Context

I can access on local mode
image

Nuxt config file


export default defineNuxtConfig({
  devtools: { enabled: true },

  nitro: {
    preset: "cloudflare-pages",
    experimental: {
      openAPI: true,
    },
  },

  modules: ["nitro-cloudflare-dev", "@nuxt/ui"]
})

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions