1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-30 03:20:30 +02:00

fix: introduce system env var, remove debug mode (#4658)

* fix: introduce system env var

* docs

* docs
This commit is contained in:
Dag
2025-08-08 01:38:12 +02:00
committed by GitHub
parent a128c05a97
commit 81ce9c9483
12 changed files with 55 additions and 95 deletions

View File

@@ -22,8 +22,8 @@ class ConnectivityAction implements ActionInterface
public function __invoke(Request $request): Response
{
if (!Debug::isEnabled()) {
return new Response('This action is only available in debug mode!', 403);
if (Configuration::getConfig('system', 'env') !== 'dev') {
return new Response('This action is only available in dev environment!', 403);
}
$bridgeName = $request->get('bridge');