Replies: 2 comments 1 reply
-
One option for this that is available today is to use the It allows you to inject pages that live anywhere in your project to a path of your choice. It's not the nicest DX but does work! |
Beta Was this translation helpful? Give feedback.
-
@delucis appreciate the pointer! It got me thinking more about dynamic routes and I found a solution that works for my use case: With the following
|
Beta Was this translation helpful? Give feedback.
-
I would like to be able to route things differently than what is on the filesystem
For example, I store content in
src/blog/[name].mdx
andsrc/case-studies/[name].mdx
but I don't want/blog/
or/case-studies/
in the URL.Solution: Perhaps astro could look for a file in the tree (eg:
src/blog/astro.conf
) that allows re-rooting this folder up a level. Or perhaps this could be some sort of routing option (that works on a per-folder basis) available in the main astro config file.Beta Was this translation helpful? Give feedback.
All reactions