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

@nuxtjs/ionic Module Affecting HTTP Status Codes #696

Open
Bader-Idris opened this issue Feb 21, 2025 · 0 comments
Open

@nuxtjs/ionic Module Affecting HTTP Status Codes #696

Bader-Idris opened this issue Feb 21, 2025 · 0 comments
Labels
bug Something isn't working needs reproduction

Comments

@Bader-Idris
Copy link

🐛 The bug

The @nuxtjs/ionic module is preventing my Nuxt server from correctly sending HTTP status codes, effectively making server-side rendering (SSR) useless. This impacts critical functionality such as proper 404 error pages and other HTTP responses, which are essential for a Nuxt-based application.

Expected Behavior:
The module should either:

  1. Be explicitly designed for client-side-only (SPA) applications to avoid breaking SSR behavior.
  2. Provide clear documentation or a configuration option to disable server-side interference.

🛠️ To reproduce

.

🌈 Expected behaviour

Steps to Reproduce:

  1. Install @nuxtjs/ionic in a Nuxt 3 SSR project.
  2. Attempt to return a 404 response or any other status code from a Nuxt route.
  3. Observe that the expected status codes do not work correctly.
    This effectively negates the benefits of using Nuxt over Vue 3 for SSR applications. I would appreciate it if the module were restricted to client-side use only or had a proper fix to ensure SSR compatibility.

Thanks for your time!

ℹ️ Additional context

No response

@Bader-Idris Bader-Idris added the bug Something isn't working label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs reproduction
Projects
None yet
Development

No branches or pull requests

2 participants