mirror of
https://github.com/Permissionless-Software-Foundation/psf-bch-api.git
synced 2026-09-21 16:52:00 -07:00
fix(port): Adding port config to .env-local file
This commit is contained in:
@@ -19,6 +19,8 @@ LOCAL_RESTURL=http://localhost:5942/v6
|
||||
|
||||
# START ACCESS CONTROL
|
||||
|
||||
PORT=5942
|
||||
|
||||
# x402 payments required to access this API?
|
||||
X402_ENABLED=true
|
||||
SERVER_BCH_ADDRESS=bitcoincash:qqlrzp23w08434twmvr4fxw672whkjy0py26r63g3d
|
||||
|
||||
@@ -5,4 +5,3 @@ setInterval(() => {
|
||||
}, 10000)
|
||||
|
||||
console.log('Timer started. Printing "hello world" every 10 seconds...')
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -45,7 +45,7 @@ const basicAuthDefaults = {
|
||||
|
||||
export default {
|
||||
// Server port
|
||||
port: process.env.PORT || 5942,
|
||||
port: parseInt(process.env.PORT, 10) || 5942,
|
||||
|
||||
// Environment
|
||||
env: process.env.NODE_ENV || 'development',
|
||||
|
||||
Reference in New Issue
Block a user