Strapi plugins like Import/Export, publisher work in my local but not in AWS instance

[details=“System Information”]

  • Strapi Version: 4.13.7
  • Operating System: Mac
  • Database: postgres
  • Node Version: 18.18.1
  • NPM Version: 9.8.1
  • Yarn Version: -
    I have an AWS instance which runs the same code as the on in my local. But the controls which usually show up for Import/export and other plugins donot come up on the AWS instance.

Any idea what could be the issue?


This is how my plugins.js looks like:

module.exports = ({ env }) => ({
“import-export-entries”: {
enabled: true,
},
“preview-button”: {
enabled: true,
config: {
contentTypes: [
{
uid: “api::blog.blog”,
draft: {
url:
env(“FRONTEND_HOST”) +
env(“FRONTEND_PORT”) +
/blog/preview/{slug},
// query: {
// slug: “{slug}”,
// },
},
published: {
url: env(“FRONTEND_HOST”) + env(“FRONTEND_PORT”) + /blog/{slug},
},
},
],
},
},
publisher: {
enabled: true,
config: {
hooks: {
beforePublish: async ({ strapi, uid, entity }) => {
console.log(“beforePublish”);
},
afterPublish: async ({ strapi, uid, entity }) => {
console.log(“afterPublish”);
},
beforeUnpublish: async ({ strapi, uid, entity }) => {
console.log(“beforeUnpublish”);
},
afterUnpublish: async ({ strapi, uid, entity }) => {
console.log(“afterUnpublish”);
},
},
},
},
upload: {
config: {
provider: “aws-s3”,
providerOptions: {
s3Options: {
accessKeyId: env(“AWS_ACCESS_KEY_ID”),
secretAccessKey: env(“AWS_ACCESS_SECRET”),
region: env(“AWS_REGION”),
params: {
Bucket: env(“AWS_BUCKET_NAME”),
},
},
},
// These parameters could solve issues with ACL public-read access — see this issue for details
actionOptions: {
upload: {
ACL: null,
},
uploadStream: {
ACL: null,
},
},
},
},
});