File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 21
21
},
22
22
"devDependencies" : {
23
23
"@types/node" : " 24.5.2" ,
24
+ "dotenv" : " ^17.2.3" ,
24
25
"eslint" : " *" ,
25
26
"eslint-config-custom" : " *" ,
26
27
"typescript" : " *" ,
Original file line number Diff line number Diff line change
1
+ import dotenv from 'dotenv'
1
2
import type { FastifyListenOptions } from 'fastify'
2
3
import { buildServer } from './server'
3
4
5
+ dotenv . config ( ) // Load environment variables from .env file
6
+
4
7
const loadConfigFromEnv = ( { HOST , PORT = 3010 } = process . env ) : FastifyListenOptions => ( {
5
8
port : Number ( PORT ) ,
6
9
host : HOST ,
Original file line number Diff line number Diff line change 2
2
"rewrites" : [
3
3
{
4
4
"source" : " /(.*)" ,
5
- "destination" : " /api/index.ts "
5
+ "destination" : " /api/index.js "
6
6
}
7
7
]
8
8
}
Original file line number Diff line number Diff line change @@ -8819,6 +8819,13 @@ __metadata:
8819
8819
languageName: node
8820
8820
linkType: hard
8821
8821
8822
+ "dotenv@npm:^17.2.3":
8823
+ version: 17.2.3
8824
+ resolution: "dotenv@npm:17.2.3"
8825
+ checksum: 10c0/c884403209f713214a1b64d4d1defa4934c2aa5b0002f5a670ae298a51e3c3ad3ba79dfee2f8df49f01ae74290fcd9acdb1ab1d09c7bfb42b539036108bb2ba0
8826
+ languageName: node
8827
+ linkType: hard
8828
+
8822
8829
"dunder-proto@npm:^1.0.0, dunder-proto@npm:^1.0.1":
8823
8830
version: 1.0.1
8824
8831
resolution: "dunder-proto@npm:1.0.1"
@@ -14288,6 +14295,7 @@ __metadata:
14288
14295
dependencies:
14289
14296
"@curvefi/api": "npm:2.68.6"
14290
14297
"@types/node": "npm:24.5.2"
14298
+ dotenv: "npm:^17.2.3"
14291
14299
eslint: "npm:*"
14292
14300
eslint-config-custom: "npm:*"
14293
14301
fastify: "npm:^5.6.1"
You can’t perform that action at this time.
0 commit comments