Greetings.
I’m trying to use Ghost as a Headless CMS coupled with Gridsome.
We are self hosting the Ghost following this article.
And I’m trying to use another url to show the content of the posts.
The baseUrl configured and hosted is http://ghost-cms.lar-app.com.
My issue is, when I try to access the content of the post, I get Page Not Found all the time.
I have defined my own routes, but Gridsome doesn’t understand that.
Here is the plugin’s config in gridsome.config.js
:
{
use: '@gridsome/source-ghost',
options: {
baseUrl: 'http://ghost-cms.lar-app.com',
contentKey: // ...key,
routes: {
post: '/:slug'
}
}
},
When I click on the post, I use the router to push me to /:slug
, but that doesn’t happen.
I also tried to use the template attribute:
template: {
GhostPost: '/:slug'
},
but that doesn’t work either.
Yeah, I have renamed the template files to GhostPost.vue
.
Any thoughts on how to solve this ?