Describe the bug
I built my Nuxt.js web application statically. And I serve it on Drogon.
Everything works fine until I refresh my dynamic pages. and I get a "404 not found" message.
I used the "addALocation" and set it in my static folder. but it dosen't solve it.
In nginx, I can handle this problem with this piece of code:
location / {
try_files $uri $uri/ /index.html;
}
To Reproduce
Steps to reproduce the behavior:
build nuxt js web application using "npm run generate" command
move "dist" folder in the drogon build folder
use "setDocumentRoot" and set your webapp build folder. for example: app().setDocumentRoot("./dist")
Describe the bug I built my Nuxt.js web application statically. And I serve it on Drogon. Everything works fine until I refresh my dynamic pages. and I get a "404 not found" message. I used the "addALocation" and set it in my static folder. but it dosen't solve it. In nginx, I can handle this problem with this piece of code:
To Reproduce Steps to reproduce the behavior:
Expected behavior refresh page normally like other static pages
Desktop: