Skip to content

Commit

Permalink
Properly pass env secrets on build time for core app #131 (#133)
Browse files Browse the repository at this point in the history
Resolve #131
  • Loading branch information
hyukkwonepic authored May 26, 2024
1 parent b318138 commit c777918
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dailyscrum-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
deploy:
environment: core
name: Deploy to fly.io
name: fly.io deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 0 additions & 1 deletion apps/core/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# syntax = docker/dockerfile:1


ARG NEXT_PUBLIC_SUPABASE_URL
ARG NEXT_PUBLIC_SUPABASE_ANON_KEY
ARG SUPABASE_SERVICE_ROLE_KEY
Expand Down
6 changes: 6 additions & 0 deletions apps/core/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ const assetPrefix = process.env.ASSET_PREFIX || "";
/** @type {import('next').NextConfig} */
const nextConfig = {
assetPrefix,
env: {
NEXT_PUBLIC_SUPABASE_URL: process.env.NEXT_PUBLIC_SUPABASE_URL,
NEXT_PUBLIC_SUPABASE_ANON_KEY: process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY,
SUPABASE_SERVICE_ROLE_KEY: process.env.SUPABASE_SERVICE_ROLE_KEY,
ASSET_PREFIX: process.env.ASSET_PREFIX,
},
async headers() {
return [
{
Expand Down

0 comments on commit c777918

Please sign in to comment.