Download next.js/errors/conflicting-public-file-page.mdx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 715 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/errors/conflicting-public-file-page.mdx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/errors/conflicting-public-file-page.mdx
-
curl -L -o conflicting-public-file-page.mdx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/errors/conflicting-public-file-page.mdx
715 Bytes
| --- | |
| title: Conflicting Public File and Page File | |
| --- | |
| ## 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 | |
| Rename either the public file or page file that is causing the conflict. | |
| Example conflict between public file and page file | |
| ```bash filename="Folder structure" | |
| public/ | |
| hello | |
| pages/ | |
| hello.js | |
| ``` | |
| Non-conflicting public file and page file | |
| ```bash filename="Folder structure" | |
| public/ | |
| hello.txt | |
| pages/ | |
| hello.js | |
| ``` | |
| ## Useful Links | |
| - [Static file serving docs](/docs/pages/api-reference/file-conventions/public-folder) | |