Skip to content

No buttons in admin panel #137

Open
Open
@BorisKamp

Description

@BorisKamp

Hi!

This is my package.json:

{
  "dependencies": {
......
    "strapi-plugin-populate-deep": "^3.0.1",
    "strapi-plugin-preview-button": "^2.2.2",
    "styled-components": "^5.3.11"
  },
.......
    "node": "18.x.x",
    "npm": "10.x.x"
  },
  "license": "MIT"
}

And here is my config/plugins.ts file:

export default ({ env }) => ({
  upload: {
    config: {
      provider: 'aws-s3',
      providerOptions: {
        accessKeyId: env('AWS_ACCESS_KEY_ID'),
        secretAccessKey: env('AWS_ACCESS_SECRET'),
        region: env('AWS_REGION'),
        params: {
          Bucket: env('AWS_BUCKET'),
        },
      },
      actionOptions: {
        upload: {},
        uploadStream: {},
        delete: {},
      },
    },
  },
  email: {
    config: {
      provider: 'sendgrid',
      providerOptions: {
        apiKey: env('SENDGRID_API_KEY'),
      },
    },
  },
  'preview-button': {
    config: {
      contentTypes: [
        {
          uid: 'api::page.page',
          draft: {
            url: `${env('FRONTEND_URL')}/{slug}`,
            query: {
              preview: true,
            },
          },
          published: {
            url: `${env('FRONTEND_URL')}/{slug}`,
          },
        },
        {
          uid: 'api::news-item.news-item',
          draft: {
            url: `${env('FRONTEND_URL')}/news/{slug}`,
            query: {
              preview: true,
            },
          },
          published: {
            url: `${env('FRONTEND_URL')}/news/{slug}`,
          },
        },
      ],
    },
  }
});

And I specified FRONTEND_URL=http://localhost:3000 in my .env file.

However, nothing in my admin panel:
Screenshot 2024-06-24 at 21 41 20

What am I doing wrong @mattmilburn ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions