Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
hoanglinh9955 opened this issue May 6, 2024 · 2 comments · Fixed by #2570

Comments

@hoanglinh9955
Copy link

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

@pi0
Copy link
Member

pi0 commented May 7, 2024

Hi, dear @hoanglinh9955. It is a known limitation as current open API support in nitro is for development only.

Stay tuned, in the future it will be possible to opt-in (and possibly password protection)

@pi0 pi0 closed this as completed May 7, 2024
@bacongobbler
Copy link

Hey @pi0, is there a ticket tracking that feature? I'd also like to enable openapi support in production mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants