Skip to content

Commit

Permalink
Update usage of example.com -> example.vercel.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jun 10, 2022
1 parent 9f0e691 commit 7c1b356
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/e2e/middleware-general/app/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
})
}
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
4 changes: 3 additions & 1 deletion test/production/required-server-files/pages/gssp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
),
},
}
}
Expand Down

0 comments on commit 7c1b356

Please sign in to comment.