gatsby-uc / gatsby-source-strapi

Gatsby source plugin for building websites using Strapi as a data source
MIT License
355 stars 183 forks source link

Gatsby Source not fetching all locales date throwing an error #328

Closed Hamza-Liaqat1 closed 2 years ago

Hamza-Liaqat1 commented 2 years ago

I have this configuration in my gaysby-config.js

{
      resolve: `gatsby-source-strapi`,
      options: {
        apiURL: `https://my-strapi.herokuapp.com`,
        accessToken: process.env.accessToken,

        queryLimit: 1000, // Default to 100

        collectionTypes: ["blog"],
        singleTypes: [
        { 
          name: 'homepage',
          api: { qs: { _locale: `all` } }
         }
        ],
      },
    },

Throwing this error below Failed to fetch data from Strapi /api/undefined Request failed with status code 404