// Redirect a request to the root path to the main app app.use('/', (req: express$Request, res: express$Response) => { res.redirect( process.env.NODE_ENV === 'production' && !process.env.FORCE_DEV ? 'https://spectrum.chat' : 'http://localhost:3000' ); });