Repository: next.js
Issue: Worpress with Vercel guide: https://vercel.com/guides/wordpress-with-vercel does not work and results in build errors when deplying
Labels: bug

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
      Platform: win32
      Arch: x64
      Version: Windows 10 Home
    Binaries:
      Node: 16.17.0
      npm: N/A
      Yarn: N/A
      pnpm: N/A
    Relevant Packages:
      next: 13.4.16-canary.0
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 4.9.5
    Next.js Config:
      output: N/A
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

_No response_

### Link to the code that reproduces this issue or a replay of the bug

https://github.com/Drygord/MizzTastyTreats

### To Reproduce

Follow The guide from https://vercel.com/guides/wordpress-with-vercel using localwp

The wordpress api line in env.local is 

`WORDPRESS_API_URL=http://mizztastytreats.local/graphql`

### Describe the Bug

Deploy errors despite doing everything exactly by the book.

[12:35:02.046] Running build in Washington, D.C., USA (East) – iad1 (Hive)
[12:35:02.086] Cloning github.com/Drygord/MizzTastyTreats (Branch: main, Commit: e3ff434)
[12:35:02.381] Previous build cache not available
[12:35:02.572] Cloning completed: 485.556ms
[12:35:02.937] Running "vercel build"
[12:35:03.426] Vercel CLI 31.2.3
[12:35:03.653] Installing dependencies...
[12:35:03.978] yarn install v1.22.17
[12:35:04.001] info No lockfile found.
[12:35:04.008] [1/4] Resolving packages...
[12:35:06.298] [2/4] Fetching packages...
[12:35:19.368] [3/4] Linking dependencies...
[12:35:22.251] [4/4] Building fresh packages...
[12:35:22.259] success Saved lockfile.
[12:35:22.264] Done in 18.29s.
[12:35:22.291] Detected Next.js version: 13.4.15
[12:35:22.293] Running "yarn run build"
[12:35:22.471] yarn run v1.22.17
[12:35:22.495] $ next build
[12:35:23.047] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[12:35:23.047] This information is used to shape Next.js' roadmap and prioritize features.
[12:35:23.047] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[12:35:23.047] https://nextjs.org/telemetry
[12:35:23.047] 
[12:35:23.131] - info Linting and checking validity of types...
[12:35:25.871] - info Creating an optimized production build...
[12:35:25.889] - info Downloading swc package @next/swc-wasm-nodejs...
[12:35:26.794] - info Using wasm build of next-swc
[12:35:26.814] - warn Attempted to load @next/swc-linux-x64-gnu, but an error occurred: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by /vercel/path0/node_modules/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node)
[12:35:26.814] - warn Attempted to load @next/swc-linux-x64-musl, but an error occurred: libc.musl-x86_64.so.1: cannot open shared object file: No such file or directory
[12:35:35.442] - info Compiled successfully
[12:35:35.442] - info Collecting page data...
[12:35:35.940] TypeError: fetch failed
[12:35:35.940]     at Object.fetch (node:internal/deps/undici/undici:11457:11)
[12:35:35.940]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[12:35:35.941]     at async fetchAPI (/vercel/path0/.next/server/chunks/924.js:432:17)
[12:35:35.941]     at async getAllPostsWithSlug (/vercel/path0/.next/server/chunks/924.js:464:18)
[12:35:35.942]     at async getStaticPaths (/vercel/path0/.next/server/pages/posts/[slug].js:317:22)
[12:35:35.945]     at async buildStaticPaths (/vercel/path0/node_modules/next/dist/build/utils.js:700:33)
[12:35:35.945]     at async /vercel/path0/node_modules/next/dist/build/utils.js:1125:113
[12:35:35.945]     at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:103:20) {
[12:35:35.945]   cause: Error: getaddrinfo ENOTFOUND mizztastytreats.local
[12:35:35.946]       at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
[12:35:35.946]     errno: -3008,
[12:35:35.946]     code: 'ENOTFOUND',
[12:35:35.946]     syscall: 'getaddrinfo',
[12:35:35.947]     hostname: 'mizztastytreats.local'
[12:35:35.947]   }
[12:35:35.947] }
[12:35:35.947] 
[12:35:35.947] > Build error occurred
[12:35:35.948] Error: Failed to collect page data for /posts/[slug]
[12:35:35.948]     at /vercel/path0/node_modules/next/dist/build/utils.js:1156:15
[12:35:35.948]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
[12:35:35.948]   type: 'Error'
[12:35:35.948] }
[12:35:35.994] error Command failed with exit code 1.
[12:35:35.994] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[12:35:36.015] Error: Command "yarn run build" exited with 1

### Expected Behavior

I'd expect it to just work out of the box after following a guide. A proper deployment and build etc.

### Which browser are you using? (if relevant)

Firefox latest version

### How are you deploying your application? (if relevant)

In this case, vercel