Svelte Environment Varibles
Environment variables are values that can be passed to an application at runtime, that influence the behavior or configuration of the application. They are stored in key-value pairs and can be used to store sensitive information, such as passwords, API keys, or configuration settings. This information is made available to the application through the operating system, so the application can use it without having to hardcode the values into the codebase.
In Svelte, you can use environment variables by accessing the process.env object, which holds all the environment variables available to your application.
For example, to use an environment variable named API_KEY in a Svelte component, you would do the following:
<script>
import { API_KEY } from '$env/static/private';
</script>