mirror of
https://github.com/strapi/strapi.git
synced 2026-01-06 04:03:25 +00:00
Merge branch 'master' into fix/boom-middleware
This commit is contained in:
commit
f7530da383
@ -17,7 +17,7 @@ $ yarn develop --watch-admin
|
||||
|
||||
### Strapi global variable
|
||||
|
||||
The administration exposes a global variable thqt is accessible for all the plugins.
|
||||
The administration exposes a global variable that is accessible for all the plugins.
|
||||
|
||||
#### `strapi.backendURL`
|
||||
|
||||
@ -56,7 +56,7 @@ The administration url (e.g. `http://localhost:4000/admin`).
|
||||
|
||||
### Main plugin object
|
||||
|
||||
Each plugin exports all its configurations in a object. This object is located in `my-plugin/admin/src/index.js`
|
||||
Each plugin exports all its configurations in an object. This object is located in `my-plugin/admin/src/index.js`
|
||||
|
||||
Here are its properties:
|
||||
|
||||
@ -169,7 +169,7 @@ Each route defined in a plugin must be prefixed by the plugin's id.
|
||||
|
||||
Let's say that you want to create a route `/user` with params `/:id` associated with the container UserPage.
|
||||
|
||||
The declaration would be as followed :
|
||||
The declaration would be as follows :
|
||||
|
||||
**Path —** `plugins/my-plugin/admin/src/containers/App/index.js`.
|
||||
|
||||
|
||||
@ -290,6 +290,10 @@ If the provider is not in the mono repo, you probably don't need `@beta` dependi
|
||||
|
||||
Then, visit [http://localhost:1337/admin/plugins/upload/configurations/development](http://localhost:1337/admin/plugins/upload/configurations/development) on your web browser and configure the provider.
|
||||
|
||||
::: tip
|
||||
Some providers may have additional settings such as the AWS S3 needs an API endpoint URL. You can find a list of these for AWS [here](https://docs.aws.amazon.com/general/latest/gr/ses.html)
|
||||
:::
|
||||
|
||||
## Create providers
|
||||
|
||||
If you want to create your own, make sure the name starts with `strapi-provider-upload-` (duplicating an existing one will be easier to create), modify the `auth` config object and customize the `upload` and `delete` functions.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user