In my Angular application, I need to import assets based on the env
configuration. I am attempting to extract the patch information from environment.ts
and save it into my assets as a json
file. However, I am unsure of the proper method to accomplish this. If direct import is not feasible, what is the correct approach?
Here is my attempt:
assets/db.json =>
{
"url":"some url"
}
environment.ts:
export const environment = {
"url":"env.url"
}