Strapi Version: 3.2.5
Operating System: MacOS
Node Version: v12.14.1
NPM Version: 6.14.4
Yarn Version: 1.22.4
GraphQL plugin: ON
I’ve deployed my app on heroku and i try to fetch from my frontend a single types endpoint (ex: https://myapp.herokuapp.com/home) but I get 404 (when i try in local it’s working). In another hand collection types are working on both environments . So i guess i missed a configuration but I didn’t see anything about it in the documation.
Thanks a lot
On the localhost, you can access it on
Please note that Single/Content Types use draft/publish by default.
I assume on localhost you have published
Home Single type. But on Heroku, it’s still unpublished, so publish it.
When Single/Content Types are unpublished they will always return 404.
Yup just make sure it’s published as we do enable the D&P by default on new CT/ST
Got it, well Draft/publish system wasn’t enabled by default in my single/content types that’s why i got this 404 error.
Thanks a lot @sunnyson and @DMehaffy !