Skip to content

fix(nitro): add NUXT_NO_SSR when ssr is disabled#203

Merged
pi0 merged 1 commit intonuxt:mainfrom
Eckhardt-D:main
Apr 13, 2022
Merged

fix(nitro): add NUXT_NO_SSR when ssr is disabled#203
pi0 merged 1 commit intonuxt:mainfrom
Eckhardt-D:main

Conversation

@Eckhardt-D
Copy link
Copy Markdown
Contributor

🔗 Linked issue

Addresses issue #30

❓ 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

Resolves #30 by replacing the process.env.NUXT_NO_SSR in the nitro config based on the user setting in the Nuxt config. Currently there is a runtime error that fails when ssr: false.

📝 Checklist

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

@pi0 pi0 changed the title chore(nitro): Adds env replace for SSR state in config. fix(nitro): add env replace for SSR state in config. Apr 13, 2022
@pi0 pi0 changed the title fix(nitro): add env replace for SSR state in config. fix(nitro): add NUXT_NO_SSR when ssr is disabled Apr 13, 2022
@pi0
Copy link
Copy Markdown
Member

pi0 commented Apr 13, 2022

Thanks! I think finally we have to avoid depending on this env workaround but is a nice fix meanwhile!

@pi0 pi0 merged commit a2d2190 into nuxt:main Apr 13, 2022
pi0 pushed a commit that referenced this pull request Apr 13, 2022
@danielroe danielroe mentioned this pull request Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error: Cannot find module "server.mjs"

2 participants