Skip to content

Commit 838973d

Browse files
committed
remove dotenv
1 parent e1ba3fe commit 838973d

File tree

4 files changed

+0
-51
lines changed

4 files changed

+0
-51
lines changed

apps/playground-web/src/app/api/airdrop/route.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
import { Engine } from "@thirdweb-dev/engine";
2-
import * as dotenv from "dotenv";
32
import type { NextRequest } from "next/server";
43
import { NextResponse } from "next/server";
54

6-
dotenv.config();
7-
85
const CHAIN_ID = "84532";
96
const 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-
208
const engine = new Engine({
219
url: process.env.ENGINE_URL as string,
2210
accessToken: process.env.ENGINE_ACCESS_TOKEN as string,

apps/playground-web/src/app/api/claimTo/route.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
import { Engine } from "@thirdweb-dev/engine";
2-
import * as dotenv from "dotenv";
32
import type { NextRequest } from "next/server";
43
import { NextResponse } from "next/server";
54

6-
dotenv.config();
7-
85
const BASESEP_CHAIN_ID = "84532";
96
const 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-
208
const engine = new Engine({
219
url: process.env.ENGINE_URL as string,
2210
accessToken: process.env.ENGINE_ACCESS_TOKEN as string,

apps/playground-web/src/app/api/erc20BatchMintTo/route.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
11
import { Engine } from "@thirdweb-dev/engine";
2-
import * as dotenv from "dotenv";
32
import type { NextRequest } from "next/server";
43
import { NextResponse } from "next/server";
54
import type { Address } from "thirdweb";
65

7-
dotenv.config();
8-
9-
const BASESEP_CHAIN_ID = "84532";
106
const 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-
218
const engine = new Engine({
229
url: process.env.ENGINE_URL as string,
2310
accessToken: process.env.ENGINE_ACCESS_TOKEN as string,

apps/playground-web/src/app/api/mintTo/route.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,10 @@
11
import { Engine } from "@thirdweb-dev/engine";
2-
import * as dotenv from "dotenv";
32
import { type NextRequest, NextResponse } from "next/server";
43

5-
dotenv.config();
6-
74
const CHAIN_ID = "84532";
85
const CONTRACT_ADDRESS = "0x8CD193648f5D4E8CD9fD0f8d3865052790A680f6";
96
const 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-
228
const engine = new Engine({
239
url: process.env.ENGINE_URL as string,
2410
accessToken: process.env.ENGINE_ACCESS_TOKEN as string,

0 commit comments

Comments
 (0)