This commit is contained in:
Igor Lobanov 2023-11-13 21:08:58 +01:00
parent 3db5cea31d
commit cb263c6842
2 changed files with 4 additions and 3 deletions

View File

@ -15,7 +15,7 @@ const page = await browser.newPage()
const targetUrl = process.env.ENVIRONMENT_URL || 'https://testing.discours.io'
await checkUrl(page, targetUrl, 'main')
// await checkUrl(page, `${targetUrl}/authors`, 'authors')
// await checkUrl(page, `${targetUrl}/topics`, 'topics')
await checkUrl(page, `${targetUrl}/authors`, 'authors')
await checkUrl(page, `${targetUrl}/topics`, 'topics')
await page.close()
await browser.close()

View File

@ -26,7 +26,8 @@ export default async function handler(req, res) {
const { body, statusCode, headers } = httpResponse
res.statusCode = statusCode
headers.forEach(([name, value]) => res.setHeader(name, value))
// headers.forEach(([name, value]) => res.setHeader(name, value))
res.setHeader('Cache-Control', 's-maxage=1, stale-while-revalidate')
res.end(body)
}