mirror of
https://github.com/strapi/strapi.git
synced 2025-07-24 17:40:18 +00:00
prettier md files
This commit is contained in:
parent
08cf81512b
commit
b43a11ad0a
@ -72,12 +72,12 @@ Community leaders will follow these Community Impact Guidelines in determining t
|
|||||||
|
|
||||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
||||||
|
|
||||||
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][mozilla coc].
|
||||||
|
|
||||||
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
|
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][faq]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
|
||||||
|
|
||||||
[homepage]: https://www.contributor-covenant.org
|
[homepage]: https://www.contributor-covenant.org
|
||||||
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
||||||
[Mozilla CoC]: https://github.com/mozilla/diversity
|
[mozilla coc]: https://github.com/mozilla/diversity
|
||||||
[FAQ]: https://www.contributor-covenant.org/faq
|
[faq]: https://www.contributor-covenant.org/faq
|
||||||
[translations]: https://www.contributor-covenant.org/translations
|
[translations]: https://www.contributor-covenant.org/translations
|
||||||
|
@ -68,10 +68,7 @@ try {
|
|||||||
// Your code here
|
// Your code here
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// Either send a simple error
|
// Either send a simple error
|
||||||
strapi
|
strapi.plugin('sentry').service('sentry').sendError(error);
|
||||||
.plugin('sentry')
|
|
||||||
.service('sentry')
|
|
||||||
.sendError(error);
|
|
||||||
|
|
||||||
// Or send an error with a customized Sentry scope
|
// Or send an error with a customized Sentry scope
|
||||||
strapi
|
strapi
|
||||||
@ -92,10 +89,7 @@ Use it if you need direct access to the Sentry instance, which should already al
|
|||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const sentryInstance = strapi
|
const sentryInstance = strapi.plugin('sentry').service('sentry').getInstance();
|
||||||
.plugin('sentry')
|
|
||||||
.service('sentry')
|
|
||||||
.getInstance();
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Disabling for non-production environments
|
## Disabling for non-production environments
|
||||||
@ -137,7 +131,7 @@ Like every other plugin, you can also disable this plugin in the plugins configu
|
|||||||
module.exports = ({ env }) => ({
|
module.exports = ({ env }) => ({
|
||||||
// ...
|
// ...
|
||||||
sentry: {
|
sentry: {
|
||||||
enabled: false
|
enabled: false,
|
||||||
},
|
},
|
||||||
// ...
|
// ...
|
||||||
});
|
});
|
||||||
|
@ -112,10 +112,7 @@ module.exports = ({ env }) => ({
|
|||||||
To send an email from anywhere inside Strapi:
|
To send an email from anywhere inside Strapi:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
await strapi
|
await strapi.plugin('email').service('email').send({
|
||||||
.plugin('email')
|
|
||||||
.service('email')
|
|
||||||
.send({
|
|
||||||
to: 'someone@example.com',
|
to: 'someone@example.com',
|
||||||
from: 'someone2@example.com',
|
from: 'someone2@example.com',
|
||||||
subject: 'Hello world',
|
subject: 'Hello world',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user