-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get environment variables when prebuilding by Github worflow #1843
Comments
@ieiekk Do you happen to use a setup with a |
I leave that file as default: import { defineConfig } from "$fresh/server.ts";
import twindPlugin from "$fresh/plugins/twind.ts";
import twindConfig from "./twind.config.ts";
export default defineConfig({
plugins: [twindPlugin(twindConfig)],
}); So is there a way to avoid import some files during build time? Thanks in advance 🙏 |
Added env: PUBLIC_SUPABASE_URL: ${{ secrets.PUBLIC_SUPABASE_URL }} PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.PUBLIC_SUPABASE_ANON_KEY }} As per denoland/fresh#1843
Same here, no way to make the build step in github actions without env variables. That is somehow unexpected as they are server side variables @marvinhagemeister |
This is what I wrote in utils.ts:
After I push the commit, I got this error message on GIthub workflow page:
And I've setup the env var on deno deploy dashboard and this works on local .env file.
The text was updated successfully, but these errors were encountered: