React, JavaScript, Architecture.
(req, res) => { const userAgent = req.headers['user-agent']; if (/Googlebot|Bingbot|Baiduspider|YandexBot/i.test(userAgent)) { const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto(`http://localhost:3000${req.originalUrl}`, { waitUntil: 'networkidle2' });