Customizing Nuxt Configuration
const BASE_PATH = `/${process.env.CATEGORY.toLowerCase()}/`;
export default {
router : {
base : BASE_PATH
},
}
In addition, there is a static source for an image in the component:
<img src="/mockups/macbookpro_01.png" />
When running "npm run dev", the image is displayed correctly, but a redirection message appears in the terminal: i [Development] Redirecting from /mockups/macbookpro_01.png to /my/mockups/macbookpro_01.png (router.base specified)
However, when I build using "npm run build", the paths do not update for the image and it becomes unavailable in the build. Can someone guide me on how to configure the build properly?