You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to disable the exceptions when there's a missing token?
For example, we have a documentation site that people will want to contribute to.
When contributors run the site locally, if they don't add an API token, they'll run into an exception.
We can work around this by either setting the app environment to production, or make our token available to everyone, but those both feel dangerous.
The text was updated successfully, but these errors were encountered:
jasonvarga
changed the title
Option to ignore torchlight when there's a missing token
Option to ignore Torchlight when there's a missing token
Feb 3, 2022
I had this issue too and solved by checking if an API token is sett in the config, then dynamically adding the Torchlight middleware it in the HTTP Kernel and dynamically adding the extension to the CommonMark parser.
Is it possible to disable the exceptions when there's a missing token?
For example, we have a documentation site that people will want to contribute to.
When contributors run the site locally, if they don't add an API token, they'll run into an exception.
We can work around this by either setting the app environment to production, or make our token available to everyone, but those both feel dangerous.
The text was updated successfully, but these errors were encountered: