Hi @hrishikesh
Thanks for the prompt response… and my apologies if I was not able to explain the issue in a clearer manner.
Frankly this feature is a revelation for me and I didn’t know it was possible… the word ‘monorepos’ is something I had heard about but never explored… so I am super keen on knowing more about this. However the information online seems to be for those who have a basic understanding of monerepos and me, I am not really clear about the basics.
In any case, let me first clear out my issues… I was able to resolve what I needed with this line in the netlify.toml
[[redirects]]
from="https://brand-a.com"
to="/brand/a/"
status=200
force=true
QUESTION 1
this way my requirement was met for brand-a.com and I think I can do as many brands as I want… or can I? Is there a limit to redirects and domains that I can add to one netlify repo? Please do advise.
This is a super simple and basic astro application with multiple html folders created using Static Site Generation…
Now regaring the PUBLISH DIRECTORY option…
QUESTION 2
is this the same as a monorepo? if not, then can you please explain in simple layman terms what the difference is ?
And then with monorepos, is that a structure where each folder is a different app on it’s own? That would mean that each folder would have it’s own node_modules folder and it’s own package.json?
QUESTION 3
But if that’s the case then how would these apps be centralised? I mean each app would have their own CSS and their own JS … right?
If my understanding of the above is right then other than the fact that the folder structure is maintained in an open manner, there’s really no ‘centralised’ source of truth… is there?
I would appreciate if you could please help me understand how this monerepos thing or the publish directory works… as going forward, I’d like to make the app I have now just one of the many apps in a tree like folder/repo… but I’d like to have centralised option for Styling and Scripts, if that’s possible…
If I was still not able to make my requirement clear, please do let me know and I’ll try again…
Please do advise.
Regards,
Alim