13 lines
360 B
Bash
13 lines
360 B
Bash
|
|
const environment = import.meta.env.VITE_ENVIRONMENT;
|
|
const apiUrl = import.meta.env.VITE_API_URL;
|
|
|
|
console.log('Environment:', environment);
|
|
console.log('API URL:', apiUrl);
|
|
|
|
// Example of using the API URL
|
|
fetch(`${apiUrl}/endpoint`)
|
|
.then(response => response.json())
|
|
.then(data => console.log(data))
|
|
.catch(error => console.error('Error:', error));
|