File size: 715 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
---
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)
|