Conflicting Public File and Page File
Source URL: https://nextjs.org/docs/messages/conflicting-public-file-page
Conflicting Public File and Page File
Section titled “Conflicting Public File and Page File”Why This Error Occurred
Section titled “Why This Error Occurred”One of your public files has the same path as a page file which is not supported. Since only one resource can reside at the URL both public files and page files must be unique.
Possible Ways to Fix It
Section titled “Possible Ways to Fix It”Rename either the public file or page file that is causing the conflict.
Example conflict between public file and page file
public/ hellopages/ hello.jsNon-conflicting public file and page file
public/ hello.txtpages/ hello.js