Unverified Commit 934e5a48 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update usage of example.com -> example.vercel.sh (#37630)

* Update usage of example.com -> example.vercel.sh

* another one

* another flakey test
parent 9f0e691a
......@@ -38,7 +38,7 @@ describe('basePath', () => {
},
{
source: '/rewrite-no-basepath',
destination: 'https://example.com',
destination: 'https://example.vercel.sh',
basePath: false,
},
{
......@@ -757,7 +757,9 @@ describe('basePath', () => {
.waitForElementByCss('#other-page-title')
const eventLog = await browser.eval('window._getEventLog()')
expect(eventLog).toEqual([
expect(
eventLog.filter((item) => item[1]?.endsWith('/other-page'))
).toEqual([
['routeChangeStart', `${basePath}/other-page`, { shallow: false }],
['beforeHistoryChange', `${basePath}/other-page`, { shallow: false }],
['routeChangeComplete', `${basePath}/other-page`, { shallow: false }],
......
......@@ -131,7 +131,7 @@ export async function middleware(request) {
const response = {}
try {
await fetch('https://example.com', { signal })
await fetch('https://example.vercel.sh', { signal })
} catch (err) {
response.error = {
name: err.name,
......
......@@ -4,6 +4,6 @@ export default async (req, res) => {
url: req.url,
query: req.query,
// make sure fetch if polyfilled
example: await fetch('https://example.com').then((res) => res.text()),
example: await fetch('https://example.vercel.sh').then((res) => res.text()),
})
}
......@@ -12,7 +12,7 @@ export const getStaticProps = ({ params }) => {
export const getStaticPaths = async () => {
// make sure fetch if polyfilled
await fetch('https://example.com').then((res) => res.text())
await fetch('https://example.vercel.sh').then((res) => res.text())
return {
paths: ['/fallback/first'],
......
......@@ -24,7 +24,9 @@ export async function getServerSideProps({ res }) {
data,
random: Math.random(),
// make sure fetch if polyfilled
example: await fetch('https://example.com').then((res) => res.text()),
example: await fetch('https://example.vercel.sh').then((res) =>
res.text()
),
},
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment