next.js icon indicating copy to clipboard operation
next.js copied to clipboard

Fix 'output:export' incorrect file copy in Windows build environment

Open takusan23 opened this issue 2 weeks ago • 2 comments

Fix #85374 (Maybe...)

Go easy on me. that's because, This is my first PullRequest. (and English beginner 😢 )

Problem

output:export copy function, use only slash (/) as path characters. But, Windows Environment use backslash(\). so This files is incorrectly copied, and Different 'out' directory content other platform(Linux/macOS).

Linux(WSL) Windows Windows (Fixed)

Also, Always fail (404) for next/link Prefetch in this problem for Windows Build Environment.

Solution

This PullRequest is replace '/' to path.sep in output:export dist copy function. (Node.js Path module)

Thank you.

takusan23 avatar Dec 08 '25 18:12 takusan23

Allow CI Workflow Run

  • [ ] approve CI run for commit: a3cb19919522ef25478c7d2fc10085475f1815bc

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

nextjs-bot avatar Dec 08 '25 18:12 nextjs-bot

Allow CI Workflow Run

  • [ ] approve CI run for commit: 488a2a2e237ce36745db0fca390ffab996b70803

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

nextjs-bot avatar Dec 08 '25 18:12 nextjs-bot