-
Notifications
You must be signed in to change notification settings - Fork 102
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
Make Default Target Directory Configurable #196
Comments
Did you had a look to the Maybe
If it works, it is not a good DX, but we have to think about all cases :
I have no idea about all cases, who are the people under each cases... |
Essentially you get I will try to poke around this on Monday. |
How did you get on with this? I just came across this issue when building a new site. I have our sitemaps under |
I've add to Dumper.php folder creation before file_put_contents()
And add to config dump_directory: web/sitemaps and sitemap_file_prefix: 'sitemaps/sitemap' Now I have sitemaps in web/sitemaps/sitemap.***.xml and index in web/sitemaps/sitemaps/sitemap.xml |
no solution yet ? |
@pesseyjulien feel free to contribute if you need it quickly |
After #187 I realized that while output directory can be configured it produces a strange inconsistency: you get a sitemap in e.g.
public/sitemap/xml/
while all your URLs arehttps://www.example.com/sitemap.foo_123.xml.gz
in the index :)I think we can solve this in two ways:
sitemap/xml/
part and the rest of the hard work is pulled from routing contextWhile the second option is theoretically more flexible, IMHO the 1st one offers a better DX.
WDYT? I can offer a PR if you like :)
The text was updated successfully, but these errors were encountered: