Hi Team,
We are customizing B2C Login UI and using Azure BLOB storage to upload static contents.
We have BLOB storage as per different environments like Dev, Test , Production etc.
Using custom policies, we are able to refer to HTML page as per environment e.g.
For Dev - https://dev.blob.core.windows.net/root/pages/login.html, For test - https://test.blob.core.windows.net/root/pages/login.htmlAzure pipeline will be used to upload all the contents like HTML pages, CSS / JQuery/ fonts/ Images etc. on BLOB
But the problem is , the html page can have reference to only absolute path of css/jquery/fonts/images .
Our requirement is that - each environment HTML page should refer to CSS/jquery etc. files as per the environment
e.gFor dev environment , login.html file should have CSS reference as <link href="https://dev.blob.core.windows.net/root/CSS/unified.css" rel="stylesheet" type="text/css" /> And for test environment, CSS reference as <link href="https://test.blob.core.windows.net/root/CSS/unified.css" rel="stylesheet" type="text/css" /> and so on...
One solution I found is to use Powershell script to update the reference path inside HTML page before uploading on BLOB.
Can anyone suggest me some other appropriate solution for this problem?
Thanks in advance,
Anu