Fix stale next data API test URL (#94815)

### Why?

Some app-static prerendered not-found fixtures still fetched
`https://next-data-api.vercel.app/api/random`, which now points at a
different static deployment and returns 404 for the API route. The rest
of the test suite uses `https://next-data-api-endpoint.vercel.app` for
this shared data API.

### How?

Updated the two stale fixture fetches to use
`https://next-data-api-endpoint.vercel.app/api/random`.

### Verification

- `rg "next-data-api\.vercel\.app" test` returned no matches
- `git diff --check` passed for the changed files
- Not run: full e2e suite (URL-only fixture change)
- Not run: prettier/eslint (local `node_modules` is missing, so
`prettier` and `eslint` were not available)

<!-- NEXT_JS_LLM_PR -->
This commit is contained in:
Jiwon Choi
2026-06-15 12:03:23 +00:00
committed by GitHub
parent 069345bf55
commit eeab6f4e21
2 changed files with 2 additions and 2 deletions
@@ -16,7 +16,7 @@ export default async function Page(props: {
params: Promise<{ slug: string }>
}) {
const params = await props.params
await fetch('https://next-data-api.vercel.app/api/random', {
await fetch('https://next-data-api-endpoint.vercel.app/api/random', {
next: {
tags: ['explicit-tag'],
},
@@ -4,7 +4,7 @@ import { notFound } from 'next/navigation'
export const revalidate = 3
export default async function Page() {
await fetch('https://next-data-api.vercel.app/api/random', {
await fetch('https://next-data-api-endpoint.vercel.app/api/random', {
next: {
tags: ['explicit-tag'],
},