Xenius
Xenius
NNuxt
Created by Xenius on 10/30/2024 in #❓・help
404 Errors for Static Nuxt Site when Deployed in a Subfolder
Hello everyone, I am encountering an issue while deploying my Nuxt application in static mode within a subfolder on my server. The application works as expected when deployed at the root directory. However, when I attempt to store it in a subfolder, I experience multiple 404 errors. It appears that the resources (like CSS, JS, and images) are still being referenced as though they are located at the root, rather than relative to the subfolder. Environment: Nuxt Version: 3.12.4 Deployment Mode: Static Actual Behavior : When accessed in the subfolder, the application tries to load resources from the root directory instead, resulting in 404 errors. Request : Could you please advise on any configuration adjustments or steps required to correctly deploy my Nuxt application in a subfolder? Thank you for your assistance!
92 replies