Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to ignore Torchlight when there's a missing token #28

Open
jasonvarga opened this issue Feb 3, 2022 · 1 comment
Open

Option to ignore Torchlight when there's a missing token #28

jasonvarga opened this issue Feb 3, 2022 · 1 comment

Comments

@jasonvarga
Copy link

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.

@jasonvarga 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
@caendesilva
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants