const customRobotsTxt = ` User-agent: Twitterbot Allow: / User-agent: * Disallow: / `.trim() export default ({ init }) => { init('app.before', ({ app }) => { app.get('/robots.txt', (_, res) => { res.set('Content-Type', 'text/plain') res.status(200) res.send(customRobotsTxt) }) }) }