Skip to content

Commit 660c1d2

Browse files
chuckcarpenterRobbieTheWagner
authored andcommitted
Add dotenv to load .env file for Supabase config
- Add dotenv as dev dependency - Load .env at top of config/environment.js - Allows SUPABASE_URL and SUPABASE_ANON_KEY to be read from .env file
1 parent b5cbb4a commit 660c1d2

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

config/environment.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
require('dotenv').config();
4+
35
module.exports = function (environment) {
46
const ENV = {
57
modulePrefix: 'Swach',

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
"broccoli-asset-rev": "^3.0.0",
141141
"concurrently": "^9.2.1",
142142
"cross-env": "^10.1.0",
143+
"dotenv": "^17.2.3",
143144
"electron": "^40.1.0",
144145
"ember-auto-import": "^2.12.0",
145146
"ember-cli": "^6.10.0",

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)