I bought ghost droplet from digital ocean. and I have nextjs application on Join Tero. I have hosted ghost on one of its sub directory /blog. The problem is that on website css is not getting applied. I don’t know whats going on here since I am beginner.
Any anything would be helpful.
While you’re serving Ghost from /blog, it looks like assets are still being served from the root path.
For example, JS for Ghost cards is being served from: https://www.jointero.org/public/cards.min.js?v=0aed015b3b
But it’s actually located here: https://www.jointero.org/blog/public/cards.min.js?v=0aed015b3b
I think you need to update your NextJS config to recognize the correct path for these assets.
1 Like
Thank you so much. it works I dont know it was nextjs or nginx but in next.js.config i reroute the request from /public to /blog/public and it worked like charm
1 Like