-
Notifications
You must be signed in to change notification settings - Fork 29.9k
Closed
Milestone
Description
Bug report
Describe the bug
Static assets served from the static/ folder will 404 if they contain URL-encodable symbols.
Note: This issue is identical to #10004, but pertains to the
static/folder instead of thepublic/folder.
To Reproduce
- Create a new Next.js Application
yarn create next-app test-static cd test-static - Create a static file with a unique name:
mkdir static/ echo "hello world" > static/hello%20copy.txt - Start the development server and issue a request for the file:
yarn dev curl http://localhost:3000/static/hello%2520copy.txt - See a 404 instead of file contents.
Expected behavior
Running the following:
curl http://localhost:3000/static/hello%2520copy.txt
Should respond with the file contents, not a 404.
Screenshots
System information
- OS: macOS
- Version of Next.js: 9.3.2
Additional Context
Metadata
Metadata
Assignees
Labels
No labels
