Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions apps/api/src/app/routes/scanner.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@ import { basicAuthMiddleware } from './route.middleware';
* - TEST_SFDC_LOGIN_USERNAME → optional JWT-bearer subject
* - TEST_SFDC_PRIVATE_KEY_BASE64 → optional JWT signing key (base64)
*/
const PRODUCTION_SERVER_URL = 'https://getjetstream.app';

const routes: express.Router = Router();

routes.use((_req, res, next) => {
const scannerRoutesEnabled = String(process.env.TEST_ENABLE_SCANNER_ROUTES || '').toLowerCase() === 'true';
if (!scannerRoutesEnabled || ENV.JETSTREAM_SERVER_URL === PRODUCTION_SERVER_URL) {
if (!scannerRoutesEnabled) {
return res.status(404).send('Not Found');
Comment thread
paustint marked this conversation as resolved.
}
Comment thread
paustint marked this conversation as resolved.
next();
Expand Down
Loading