File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change 21
21
- name : Install tsx
22
22
run : npm install -g tsx
23
23
24
- - name : Install tsx
25
- run : npm install -g dotenv
26
-
27
- - name : Create .env file
28
- run : |
29
- echo "ENGINE_OPENAPI_URL=${{ secrets.ENGINE_OPENAPI_URL }}" >> .env
30
-
31
24
- name : Install dependencies
32
25
working-directory : ./sdk
33
26
run : yarn install
Original file line number Diff line number Diff line change 1
1
import { execSync } from "child_process" ;
2
- import dotenv from "dotenv" ;
3
2
import fs from "fs" ;
4
3
import { kill } from "process" ;
5
4
6
- dotenv . config ( ) ;
7
-
8
- const ENGINE_OPENAPI_URL = process . env . ENGINE_OPENAPI_URL ;
5
+ const ENGINE_OPENAPI_URL = "https://demo.web3api.thirdweb.com/json" ;
9
6
10
7
async function main ( ) {
11
8
try {
12
- console . log ( "ENGINE_OPENAPI_URL:" , ENGINE_OPENAPI_URL ) ;
13
- if ( ! ENGINE_OPENAPI_URL ) {
14
- throw new Error ( "ENGINE_OPENAPI_URL is not defined" ) ;
15
- }
16
9
const response = await fetch ( ENGINE_OPENAPI_URL ) ;
17
10
const jsonData = await response . json ( ) ;
18
11
You can’t perform that action at this time.
0 commit comments