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

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

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

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

Conversation

@pi0

@pi0pi0 commented Jul 7, 2022

Copy link
Copy Markdown
Member

🔗 Linked issue

resolvesnuxt/nuxt#13986

resolvesnuxt/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

netlifyBot commented Jul 7, 2022

Copy link
Copy Markdown

Deploy Preview for nuxt3-docs canceled.

NameLink
🔨 Latest commitf0d5eac
🔍 Latest deploy loghttps://app.netlify.com/sites/nuxt3-docs/deploys/62c70dabc5ed4600081636fe

@pi0
pi0 merged commit f321a56 into mainJul 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
@pi0pi0 mentioned this pull request Jul 11, 2022
Sign up for freeto 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

@pi0@danielroe