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

fix(nuxt): enable router when app/router.options.ts file is present #8193

Merged
merged 5 commits into from Oct 15, 2022

Conversation

vencho-mdp
Copy link
Contributor

@vencho-mdp vencho-mdp commented Oct 14, 2022

πŸ”— Linked issue

resolves nuxt/nuxt#15163

❓ 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

If the user provides a router.options file, the module should be enabled, even without a pages dir.

πŸ“ Checklist

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

@codesandbox
Copy link

codesandbox bot commented Oct 14, 2022

CodeSandbox logoCodeSandbox logoΒ  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

@netlify
Copy link

netlify bot commented Oct 14, 2022

βœ… Deploy Preview for nuxt3-docs ready!

Name Link
πŸ”¨ Latest commit f01594b
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/63499659a24dfd0008b2c4af
😎 Deploy Preview https://deploy-preview-8193--nuxt3-docs.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@pi0
Copy link
Member

pi0 commented Oct 14, 2022

Thanks for this improvement. Enabling module with custom router makes sense!

Do you mind fixing lint issue?

@vencho-mdp
Copy link
Contributor Author

Sure!

Co-authored-by: pooya parsa <pyapar@gmail.com>
@pi0 pi0 changed the title fix(pages): add module when router.options is present fix(nuxt): enable router when app/router.options.ts file is present Oct 15, 2022
@pi0 pi0 merged commit b9d6f37 into nuxt:main Oct 15, 2022
@pi0
Copy link
Member

pi0 commented Oct 15, 2022

Thanks!

@vencho-mdp vencho-mdp deleted the patch-1 branch October 15, 2022 12:27
@pi0 pi0 mentioned this pull request Oct 18, 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.

Using only router.options.ts should enable page mode
3 participants