Skip to content

Commit 43c2060

Browse files
committed
remove host header option
1 parent 95f0f23 commit 43c2060

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pages/api/image/[id].js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ export default async function id(req, res) {
3434
}
3535
}
3636

37-
const host = (req.headers && req.headers.host) || 'carbon.now.sh'
38-
3937
try {
4038
await chrome.font(NOTO_COLOR_EMOJI_URL)
4139
} catch (e) {
@@ -58,7 +56,7 @@ export default async function id(req, res) {
5856

5957
const queryString = state ? `state=${state}` : qs.stringify(params)
6058

61-
await page.goto(`https://${host}/${id ? id : `?${queryString}`}`)
59+
await page.goto(`https://carbon.now.sh/${id ? id : `?${queryString}`}`)
6260
await page.addScriptTag({ url: DOM_TO_IMAGE_URL })
6361

6462
await page.waitForSelector('.export-container', { visible: true, timeout: 9500 })

0 commit comments

Comments
 (0)