I am using the default marko-run project with the adapter-static adapter..
When I create a route structure like this:
src/routes
├── foo
│ └── +page.marko
└── +page.marko
... and I run marko-run build, I get this output:
dist/public
├── foo.html
└── index.html
If I then copy these files to my file server and try to connect to my website, I cannot connect to the subpage. Connecting to example.com/foo or example.com/foo/ both return 404 errors. I must explicitly connect to example.com/foo.html to see the page.
I would prefer the output structure to look like this:
dist/public
├── foo
│ └── index.html
└── index.html
That would allow the server to correctly locate foo/index.html when connecting to either of example.com/foo or example.com/foo/. As far as I can tell, there is no option to enable this behavior. Is that something you could add?
I am using the default
marko-runproject with theadapter-staticadapter..When I create a route structure like this:
... and I run
marko-run build, I get this output:If I then copy these files to my file server and try to connect to my website, I cannot connect to the subpage. Connecting to
example.com/fooorexample.com/foo/both return404errors. I must explicitly connect toexample.com/foo.htmlto see the page.I would prefer the output structure to look like this:
That would allow the server to correctly locate
foo/index.htmlwhen connecting to either ofexample.com/fooorexample.com/foo/. As far as I can tell, there is no option to enable this behavior. Is that something you could add?