GithubHelp home page GithubHelp logo

Comments (2)

ComfortablyCoding avatar ComfortablyCoding commented on June 28, 2024

It is possible they changed this but per the docs (and from what I have observed in the past) the envs should be merged with the base one.

I will check this and add any relevant info to the docs as needed.

from strapi-plugin-transformer.

ukashazia avatar ukashazia commented on June 28, 2024

Many people have reported problems with the plugin not working as documented. I had the same problem. I installed the plugin. Added ./config/plugins.js file as documented and nothing happened.

I found out that plugins.js file inside ./config folder is ignored by Strapi at least in the case you are having a ./config/env folder.

See: https://github.com/strapi/strapi/blob/d999ad0b00ff427885462051cdc96626b7946472/packages/core/strapi/src/core/app-configuration/index.ts#L54

I managed to fix the issue by moving the plugins.js file inside my env folder's respective environment folders (development, production, ...).

Like this.

Before:

./config
  plugins.js

After:

./config
  /env
    /development
      plugins.js
    /production
      plugins.js

Could you add this to the documentation?

this doesn't seem to work either

Edit: My bad, i was exporting 2 modules at once in plugins.js file.

from strapi-plugin-transformer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.