İçeriğe geç
Blog

Strapi Cloud Cloudinary not working: config shows MISSING

Cloudinary uploads work locally but fail on Strapi Cloud and the config shows MISSING? Fix the env variables, the production plugins file, and the CSP.

The Liite team6 dk okuma

Short answer

Strapi Cloud does not read your local .env file, so the Cloudinary values come through empty. Add CLOUDINARY_NAME, CLOUDINARY_KEY and CLOUDINARY_SECRET in the Strapi Cloud dashboard, define the provider in config/env/production/plugins.ts, and redeploy.

Your Strapi project uploads images to Cloudinary on your laptop. After you deploy to Strapi Cloud, uploads fail and the Cloudinary settings show as MISSING. The same code may even upload fine on another host such as Render.

Strapi Cloud Cloudinary not working: config shows MISSING

Why it happens

Strapi loads configuration in layers. Files in config/ apply everywhere, and files in config/env/<environment>/ are merged on top when NODE_ENV matches the folder name. A deployed Strapi project normally runs with NODE_ENV=production, so it reads config/env/production/.

People in the Strapi community on Reddit (September 2025) report this exact pattern: Cloudinary worked locally, failed on Strapi Cloud, and the fix was to put the provider config in config/env/production/plugins.ts. The same code worked on Render. That is a single report, and it does not explain why Strapi Cloud behaves differently from other hosts. Treat the causes below as likely, not documented.

The causes, most common first:

  1. The variables only exist in your local .env. That file is normally git-ignored and never deployed. On Strapi Cloud the values are empty until you add them in the dashboard.
  2. The provider config is only in config/plugins.ts. Some people report that Cloud picked up the setup only once it sat in the production environment folder. Not confirmed as a rule.
  3. A variable name does not match. Environment variable names are case-sensitive. CLOUDINARY_NAME and Cloudinary_Name are different variables, and a mismatch gives you undefined, which is most likely what MISSING means.
  4. The provider package is not a real dependency. If @strapi/provider-upload-cloudinary is not in package.json, the build has nothing to load.
  5. You did not redeploy. Config files and changed variables apply only to a fresh deployment.
CauseSymptomFix
Variables not set in CloudConfig shows MISSINGAdd them in the dashboard
Provider not in production configFalls back to local disk or errorsAdd config/env/production/plugins.ts
Name mismatchMISSING for one value onlyMatch the exact name and case
Package missingBuild or boot error in logsAdd it to dependencies
Security middlewareUpload works, thumbnails blankAllow res.cloudinary.com

Step-by-step fixes

1. Add the variables in Strapi Cloud

  1. Open your project in the Strapi Cloud dashboard.
  2. Go to the project settings and find the environment variables section.
  3. Add the three Cloudinary values you use locally: cloud name, API key and API secret.
  4. Use the same names your config reads, for example CLOUDINARY_NAME, CLOUDINARY_KEY and CLOUDINARY_SECRET.

2. Create the production plugins file

Create config/env/production/plugins.ts with the upload provider:

export default ({ env }) => ({
  upload: {
    config: {
      provider: 'cloudinary',
      providerOptions: {
        cloud_name: env('CLOUDINARY_NAME'),
        api_key: env('CLOUDINARY_KEY'),
        api_secret: env('CLOUDINARY_SECRET'),
      },
      actionOptions: {
        upload: {},
        uploadStream: {},
        delete: {},
      },
    },
  },
});

If your project uses JavaScript, name the file plugins.js and use module.exports = ({ env }) => ({ ... }).

Keep names identical

Copy the variable names from your config file into the dashboard instead of retyping them. One wrong letter or capital gives you a MISSING value that looks like a platform bug.

3. Check the provider package

@strapi/provider-upload-cloudinary must be listed under dependencies in package.json, not only installed on your machine. Commit the lockfile too, so the build installs the same versions.

4. Redeploy and test

  1. Trigger a new deployment from the dashboard or by pushing a commit.
  2. Open the admin panel and upload a test image.
  3. Check your Cloudinary media library to confirm the file arrived.

5. Read the deployment logs

If it still fails, the logs in the Strapi Cloud dashboard usually name the real error, such as an invalid API secret or a missing module. Reading them is faster than guessing from the admin panel.

6. If uploads work but thumbnails are blank

This is a different problem. Strapi's default security middleware can block images from other domains. In config/middlewares.ts, allow res.cloudinary.com for img-src and media-src in the strapi::security settings.

Do not commit your keys

Do not fix MISSING by committing your .env file. Keep the keys in the Strapi Cloud settings, and rotate them in Cloudinary if they were ever pushed to a public repository.

What won't help

  • Editing only config/plugins.ts again. If that file already works locally, rewriting it does not change what production sees.
  • Reinstalling the provider locally. The problem is in what the cloud deployment receives, not in your local node_modules.
  • Blaming Cloudinary. If the same keys upload from your laptop, the credentials are valid.

Checklist before you try again

  • All three Cloudinary variables exist in the Strapi Cloud environment settings.
  • Names in the dashboard match your config exactly, including case.
  • config/env/production/plugins.ts (or .js) is committed and pushed.
  • @strapi/provider-upload-cloudinary is in dependencies.
  • You redeployed after the last change.
  • res.cloudinary.com is allowed in config/middlewares.ts if thumbnails are blank.

If nothing works

This advice rests on one community report from September 2025, and Strapi may have changed how Cloud loads configuration since then. Check Strapi's own documentation on environment variables and upload providers for current guidance.

If you still need help, contact Strapi Cloud support from the dashboard, or ask on Strapi's community forum or Discord. Include the deployment log with secrets removed, the exact error text, the time of the failed upload, and the steps above that you already tried.

Subject: Cloudinary upload fails on Strapi Cloud, config shows MISSING

Project: <project name>
Environment: production
Problem: Uploads to Cloudinary work locally but fail on Strapi Cloud. The Cloudinary config shows MISSING.
What I tried: Added CLOUDINARY_NAME, CLOUDINARY_KEY and CLOUDINARY_SECRET in the dashboard, created config/env/production/plugins.ts, confirmed @strapi/provider-upload-cloudinary is in dependencies, redeployed.
Deployment log (secrets removed): <paste the relevant lines>
Time of the failed upload (UTC): <time>

Common questions

Why does it work on Render but not Strapi Cloud?

We could not confirm the reason. On any host, the config only works if the variables it reads exist in that host's environment. A value that exists on your machine or on Render does not exist on Strapi Cloud until you add it there.

What does MISSING mean in the config?

It most likely means a value your config asks for came back empty at runtime. Check the variable names for typos first, then confirm they were saved in the Strapi Cloud settings and that you redeployed afterward.

Do I need the production file if the variables are set?

Possibly not. If config/plugins.ts already reads from env() and the variables are set, it may work without it. The community report found the production file was what fixed it, so it is the safest first thing to try.

Should I rotate my Cloudinary keys?

Yes, if they were ever committed to a repository, pasted into a public log or shared in a screenshot. Create new keys in Cloudinary, update the Strapi Cloud variables and redeploy.