Replies: 1 comment
-
What about Redirects? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Next.js project at work that needs to host HTML. (Sometimes the outsourced company can't write React.)
So I decided to host the HTML files in the public directory, but there's one problem.
For example, I put the HTML file in
/public/example/index.html
.I can access it at
http://locahost:3000/example/index.html
.But if I go to
http://locahost:3000/example
, I get a 404 Not Found.It would be better to be able to specify the index, like expressjs/serve-static.
Please let me know what you think.
Beta Was this translation helpful? Give feedback.
All reactions