Skip to content

Commit

Permalink
set up env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
cuteolaf committed Dec 19, 2023
1 parent 1676997 commit c8a6134
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WS_CORETIME_CHAIN="WSS endpoint of the coretime chain"
WS_RELAY_CHAIN="WSS endpoint of the coretime relay chain"
WS_CONTRACTS_CHAIN="WSS endpoint of the contracts chain"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ package-lock.json
.env.development.local
.env.test.local
.env.production.local
.env

# vercel
.vercel
Expand Down
5 changes: 5 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ const nextConfig = {
images: {
domains: ['github.com'],
},
env: {
WS_CORETIME_CHAIN: process.env.WS_CORETIME_CHAIN,
WS_RELAY_CHAIN: process.env.WS_RELAY_CHAIN,
WS_CONTRACTS_CHAIN: process.env.WS_CONTRACTS_CHAIN,
},
};

module.exports = nextConfig;

0 comments on commit c8a6134

Please sign in to comment.