Skip to content

Commit

Permalink
feat: add supabase environment var
Browse files Browse the repository at this point in the history
  • Loading branch information
andostronaut committed Sep 10, 2024
1 parent b6ad5b9 commit 7c28d72
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# CRYPTO
CRYPTO_PASSPHRASE=your-super-secret-passphrase
CRYPTO_PASSPHRASE=your-super-secret-passphrase

# SUPABASE
SUPABASE_URL=your-supabase-url
SUPABASE_ANON_KEY=your-supabase-anon-key
3 changes: 2 additions & 1 deletion env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ declare global {
namespace NodeJS {
interface ProcessEnv {
NODE_ENV: 'development' | 'production'

CRYPTO_PASSPHRASE: string
SUPABASE_URL: string
SUPABASE_ANON_KEY: string
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
env: {
CRYPTO_PASSPHRASE: process.env.CRYPTO_PASSPHRASE
CRYPTO_PASSPHRASE: process.env.CRYPTO_PASSPHRASE,
SUPABASE_URL: process.env.SUPABASE_URL,
SUPABASE_ANON_KEY: process.env.SUPABASE_ANON_KEY
}
}

Expand Down

0 comments on commit 7c28d72

Please sign in to comment.