I'm having an issue with the apis in my docker and apis. in my confg i have
adapter: node({
mode: "standalone",
output: "server",
I have the .env file in the docker compose files. for example im using umami for analytics in a file called umami.astro. i've added this to the main layout. i also have a livechat with using the same approach
const UMAMI_ANALYTICS_KEY = import.meta.env.UMAMI_ANALYTICS_KEY;
const PUBLIC_UMAMI_URL = import.meta.env.PUBLIC_UMAMI_URL;
<script type="text/partytown" src={PUBLIC_UMAMI_URL} data-website-id={UMAMI_ANALYTICS_KEY}></script>
const PUBLIC_TIDIO_KEY = import.meta.env.PUBLIC_TIDIO_KEY;
<script src="//code.tidio.co/{PUBLIC_TIDIO_KEY}.js" async></script>
Then i have both google autofill for addresses and web3forms for forms
const { GOOGLE_AUTOFILL, WEB_3_FORMS_ACCESS_KEY } = import.meta.env;
<form
action="https://api.web3forms.com/submit"
method="POST"
id="form"
class="needs-validation"
data-astro-reload
novalidate>
<input type="hidden" name="access_key" value={import.meta.env.WEB_3_FORMS_ACCESS_KEY} />
I've tried everything to get this to work and it shows in the docker image that those variables have been added but nothing is working...