How to config access token Storefront API on multiple environment

I have a code block to request Storefront API (need accessToken), it worked well on Development instance. However it won’t work once we deploy to other environments such as STAG/PROD because we cannot use the accessToken for Development. How can I config the accessToken properly for multiple env.

Noted: In others platform like Nodejs, we can store the token on .env file, is there any relevant way on Shopify ?

Hi Lujbek,

Is this for using the Headless channel or for a custom app?