Skip to content

Commit

Permalink
renamed MONGODB_URI to MONGO_URI
Browse files Browse the repository at this point in the history
  • Loading branch information
satmm committed Jun 18, 2024
1 parent 42defd6 commit 7c0e5b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/api/createClippy/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export async function POST(req: Request) {
return formattedString;
}

const uri = process.env.MONGODB_URI as string;
const uri = process.env.MONGO_URI as string;
const dbname = process.env.MONGO_DB_NAME as string;
const dbcollection = process.env.MONGO_COLLECTION_NAME as string;

console.log('MONGODB_URI:', uri);
console.log('MONGO_URI:', uri);
console.log('MONGO_DB_NAME:', dbname);
console.log('MONGO_COLLECTION_NAME:', dbcollection);

Expand Down
4 changes: 2 additions & 2 deletions app/api/getPage/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function POST(req: Request) {
const request = await req.json();
console.log("Got Request for", request);

const uri = process.env.MONGODB_URI;
const uri = process.env.MONGO_URI;
const dbname = process.env.MONGO_DB_NAME;
const dbcollection = process.env.MONGO_COLLECTION_NAME;

Expand All @@ -21,7 +21,7 @@ export async function POST(req: Request) {
);
}

console.log('MONGODB_URI:', uri);
console.log('MONGO_URI:', uri);
console.log('MONGO_DB_NAME:', dbname);
console.log('MONGO_COLLECTION_NAME:', dbcollection);

Expand Down

0 comments on commit 7c0e5b0

Please sign in to comment.