Autodevops for Angular, issues with backed in env vars

Hello community!

What’s the proper way to use autodevops with staging for Angular projects?
We need to pass the env vars at runtime
How would you advice to structure the CI to stick to Gitlab flow for Angular?