File tree Expand file tree Collapse file tree 4 files changed +0
-51
lines changed
apps/playground-web/src/app/api Expand file tree Collapse file tree 4 files changed +0
-51
lines changed Original file line number Diff line number Diff line change 11import { Engine } from "@thirdweb-dev/engine" ;
2- import * as dotenv from "dotenv" ;
32import type { NextRequest } from "next/server" ;
43import { NextResponse } from "next/server" ;
54
6- dotenv . config ( ) ;
7-
85const CHAIN_ID = "84532" ;
96const BACKEND_WALLET_ADDRESS = process . env . ENGINE_BACKEND_WALLET as string ;
107
11- console . log ( "Environment Variables:" ) ;
12- console . log ( "CHAIN_ID:" , CHAIN_ID ) ;
13- console . log ( "BACKEND_WALLET_ADDRESS:" , BACKEND_WALLET_ADDRESS ) ;
14- console . log ( "ENGINE_URL:" , process . env . ENGINE_URL ) ;
15- console . log (
16- "ACCESS_TOKEN:" ,
17- process . env . ENGINE_ACCESS_TOKEN ? "Set" : "Not Set" ,
18- ) ;
19-
208const engine = new Engine ( {
219 url : process . env . ENGINE_URL as string ,
2210 accessToken : process . env . ENGINE_ACCESS_TOKEN as string ,
Original file line number Diff line number Diff line change 11import { Engine } from "@thirdweb-dev/engine" ;
2- import * as dotenv from "dotenv" ;
32import type { NextRequest } from "next/server" ;
43import { NextResponse } from "next/server" ;
54
6- dotenv . config ( ) ;
7-
85const BASESEP_CHAIN_ID = "84532" ;
96const BACKEND_WALLET_ADDRESS = process . env . ENGINE_BACKEND_WALLET as string ;
107
11- console . log ( "Environment Variables:" ) ;
12- console . log ( "CHAIN_ID:" , BASESEP_CHAIN_ID ) ;
13- console . log ( "BACKEND_WALLET_ADDRESS:" , BACKEND_WALLET_ADDRESS ) ;
14- console . log ( "ENGINE_URL:" , process . env . ENGINE_URL ) ;
15- console . log (
16- "ACCESS_TOKEN:" ,
17- process . env . ENGINE_ACCESS_TOKEN ? "Set" : "Not Set" ,
18- ) ;
19-
208const engine = new Engine ( {
219 url : process . env . ENGINE_URL as string ,
2210 accessToken : process . env . ENGINE_ACCESS_TOKEN as string ,
Original file line number Diff line number Diff line change 11import { Engine } from "@thirdweb-dev/engine" ;
2- import * as dotenv from "dotenv" ;
32import type { NextRequest } from "next/server" ;
43import { NextResponse } from "next/server" ;
54import type { Address } from "thirdweb" ;
65
7- dotenv . config ( ) ;
8-
9- const BASESEP_CHAIN_ID = "84532" ;
106const BACKEND_WALLET_ADDRESS = process . env . ENGINE_BACKEND_WALLET as string ;
117
12- console . log ( "Environment Variables:" ) ;
13- console . log ( "CHAIN_ID:" , BASESEP_CHAIN_ID ) ;
14- console . log ( "BACKEND_WALLET_ADDRESS:" , BACKEND_WALLET_ADDRESS ) ;
15- console . log ( "ENGINE_URL:" , process . env . ENGINE_URL ) ;
16- console . log (
17- "ACCESS_TOKEN:" ,
18- process . env . ENGINE_ACCESS_TOKEN ? "Set" : "Not Set" ,
19- ) ;
20-
218const engine = new Engine ( {
229 url : process . env . ENGINE_URL as string ,
2310 accessToken : process . env . ENGINE_ACCESS_TOKEN as string ,
Original file line number Diff line number Diff line change 11import { Engine } from "@thirdweb-dev/engine" ;
2- import * as dotenv from "dotenv" ;
32import { type NextRequest , NextResponse } from "next/server" ;
43
5- dotenv . config ( ) ;
6-
74const CHAIN_ID = "84532" ;
85const CONTRACT_ADDRESS = "0x8CD193648f5D4E8CD9fD0f8d3865052790A680f6" ;
96const BACKEND_WALLET_ADDRESS = process . env . ENGINE_BACKEND_WALLET as string ;
107
11- // Add logging for environment variables
12- console . log ( "Environment Variables:" ) ;
13- console . log ( "CHAIN_ID:" , CHAIN_ID ) ;
14- console . log ( "BACKEND_WALLET_ADDRESS:" , BACKEND_WALLET_ADDRESS ) ;
15- console . log ( "CONTRACT_ADDRESS:" , CONTRACT_ADDRESS ) ;
16- console . log ( "ENGINE_URL:" , process . env . ENGINE_URL ) ;
17- console . log (
18- "ACCESS_TOKEN:" ,
19- process . env . ENGINE_ACCESS_TOKEN ? "Set" : "Not Set" ,
20- ) ;
21-
228const engine = new Engine ( {
239 url : process . env . ENGINE_URL as string ,
2410 accessToken : process . env . ENGINE_ACCESS_TOKEN as string ,
You can’t perform that action at this time.
0 commit comments