When using Vectorize's managed OAuth credentials, you only need to configure your Vectorize API credentials.
Add the following environment variables to your Next.js application:
# Vectorize credentials
VECTORIZE_API_KEY=your_vectorize_api_token
VECTORIZE_ORGANIZATION_ID=your_organization_id- Log in to your Vectorize account
- Navigate to your organization settings
- Generate an API key if you haven't already
- Note your organization ID from the URL or settings page
You can validate your environment variables in your application:
const config = {
authorization: process.env.VECTORIZE_API_KEY!,
organizationId: process.env.VECTORIZE_ORGANIZATION_ID!,
};
if (!config.authorization || !config.organizationId) {
throw new Error('Missing required Vectorize credentials');
}