Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

fix(nuxt): use virtual server stub with ssr: false#5773

Merged
pi0 merged 1 commit intomainfrom
fix/spa-fallback
Jul 7, 2022
Merged

fix(nuxt): use virtual server stub with ssr: false#5773
pi0 merged 1 commit intomainfrom
fix/spa-fallback

Conversation

@pi0
Copy link
Copy Markdown
Member

@pi0 pi0 commented Jul 7, 2022

🔗 Linked issue

resolves nuxt/nuxt#13986

resolves nuxt/nuxt#13901

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

When server-side rendering is disabled, we do not generate .nuxt/dist/server/index.mjs. A guard with NUXT_NO_SSR environment variable was being used but it does not always works and makes issues with rollup that tries to eagerly parse the import statement.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jul 7, 2022

Deploy Preview for nuxt3-docs canceled.

Name Link
🔨 Latest commit f0d5eac
🔍 Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62c70dabc5ed4600081636fe

@pi0 pi0 merged commit f321a56 into main Jul 7, 2022
@pi0 pi0 deleted the fix/spa-fallback branch July 7, 2022 16:51
danielroe added a commit to nuxt/bridge that referenced this pull request Jul 8, 2022
@pi0 pi0 mentioned this pull request Jul 11, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Could not load .nuxt/dist/server/server.mjs when using ssr false and webpack 'nuxt dev' breaks on a fresh install with ssr: false

2 participants