Cloudinary works locally but not in Strapi Cloud

System Information
  • Strapi Version: 4.25.13
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

Why won’t Strapi Cloud connect to Cloudinary?

  • Environment Variables in Cloud config. :white_check_mark:
    image

  • Middleware settings for strapi:security are in place. :white_check_mark:

  • Plugin settings configured. :white_check_mark:

upload: {
    config: {
      provider: 'cloudinary',
      providerOptions: {
        cloud_name: env('CLOUDINARY_NAME'),
        api_key: env('CLOUDINARY_KEY'),
        api_secret: env('CLOUDINARY_SECRET'),
      },
      actionOptions: {
        upload: {
          folder: env("CLOUDINARY_FOLDER"),
        },
        uploadStream: {
          folder: env("CLOUDINARY_FOLDER"),
        },
        delete: {},
      },
    },
  },

Uploads remain local (to Strapi Cloud) and previews don’t work. :cry:

The resolution for this was to add an environment config file for production (config/env/production/plugins.js). This is required in Strapi Cloud. The documentation exists but it wasn’t immediately clear. Many props to @DMehaffy for his help solving this.