The code below seems to work so far with no errors
import { Pinecone } from "@pinecone-database/pinecone";
let pinecone;
export async function initPinecone() {
pinecone = new Pinecone({
apiKey: process.env.PINECONE_API_KEY,
});
console.log("Pinecone initialized successfully.");
}