Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Content]: Routes don't need to be in the /routes directory #870

Open
klequis opened this issue Sep 6, 2024 · 1 comment
Open

[Content]: Routes don't need to be in the /routes directory #870

klequis opened this issue Sep 6, 2024 · 1 comment
Assignees
Labels
improve documentation Enhance existing documentation. pending review Awaiting review by team members.

Comments

@klequis
Copy link
Contributor

klequis commented Sep 6, 2024

📚 Subject area/topic

/solid-start/building-your-application/routing.mdx

📋 Page(s) affected (or suggested, for new content)

https://docs.solidjs.com/solid-start/building-your-application/routing

📋 Description of content that is out-of-date or incorrect

Today I accidentally place a new route in /src instead of /src/routes and the route works. The doc states:

"Each file in the routes directory is treated as a route. To create a new route or page in your application, simply create a new file in the routes directory. "

🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)

I'll provide an example once I get an issue number.

@klequis klequis added improve documentation Enhance existing documentation. pending review Awaiting review by team members. labels Sep 6, 2024
@klequis
Copy link
Contributor Author

klequis commented Sep 6, 2024

Example

https://github.com/klequis/solid-docs-next-issue-870

Navigate to the /products route.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improve documentation Enhance existing documentation. pending review Awaiting review by team members.
Projects
None yet
Development

No branches or pull requests

3 participants