test
This commit is contained in:
parent
3db5cea31d
commit
cb263c6842
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user