question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Routing of index not working

See original GitHub issue

Environment

  • Operating System: Linux
  • Node Version: v18.0.0
  • Nuxt Version: 3.0.0-rc.4
  • Package Manager: pnpm@7.1.0
  • Builder: vite
  • User Config: typescript, modules
  • Runtime Modules: @nuxt/content@2.0.1
  • Build Modules: -

Reproduction

pnpm dlx nuxi init content-app -t content pnpm install --shamefully-hoist pnpm run dev

Describe the bug

The routing doesn´t match / to index.md. It seems to use the first file alphabetically.

/ -> about.md image

rename about.md to zabout.md image

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
nobkdcommented, Jun 15, 2022

You might want to look at this issue: #1237 And to solve this you could use the edge version of nuxt content as suggested in this comment

1reaction
hacknugcommented, Jun 27, 2022

I think we can safely close this as a duplicate of #1237 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nested index route not rendering in react-router-dom v6
Trying to use the new index route syntax so that my HomePage component renders at the index that is currently serving a Layout...
Read more >
Index route not working but /create is - Laracasts
It is just a simple module which displays entries in a database table, creates ,edits and deletes them. My problem is that the...
Read more >
Routing to controller actions in ASP.NET Core - Microsoft Learn
Learn how ASP.NET Core MVC uses Routing Middleware to match URLs of incoming requests and map them to actions.
Read more >
Ultimate React Router v6 Guide
React Router is by far the most popular routing library in React and this article goes in depth on everything you need to...
Read more >
Routing - Remix
Index Route - A route that shares the same URL as the parent route but renders as the default child route inside of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found