How do I get the environment variables in the page js file?

background:
A login function that distinguishes the online environment from the test environment. The online environment logs in with the mobile verification code, and the test environment logs in with the account password.
my first reaction to seeing this requirement is to judge whether it is an online environment or a test environment based on environment variables, and then display different buttons on the interface, but I have never found a way to get environment variables in js.
Front-end Framework: angular1
Building tools: gulp, webpack


use cross-env to set environment variables, use process.env.xxx to get environment variables

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7b966b-168dc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7b966b-168dc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?