Skip to Content
DocsCloudinary

Setting up Cloudinary

Skillsaint uses Cloudinary for scalable image management. Follow these steps to configure Cloudinary for your project.

Prerequisites

Before you begin, ensure you have a Cloudinary account. You can sign up for free at cloudinary.com .

1. Get Your API Credentials

  1. Log in to your Cloudinary dashboard.

  2. Navigate to the Dashboard (usually the landing page after login).

  3. Copy the Cloud Name, then click the Go To API Keys button. cloudinary

  4. You can now view the API Key and API Secret in the API Keys table. Copy both of them. cloudinary

2. Configure Environment Variables

Add the following variables to your .env file in the root of your project:

NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=your_cloud_name CLOUDINARY_API_KEY=your_api_key CLOUDINARY_API_SECRET=your_api_secret

3. Verification

Once configured, the application will automatically use these credentials for media uploads. You can verify the integration by trying to upload a profile image in the application.

Troubleshooting

  • Upload Failures:

    • Double-check that your CLOUDINARY_API_KEY and CLOUDINARY_API_SECRET are correct.
    • Ensure your Cloudinary account has sufficient credits/bandwidth.
    • Check the server logs for any specific error messages from the Cloudinary SDK.
  • Images Not Loading:

    • Verify that the NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME is correct, as this is used to construct the public URLs.