|
| 1 | + |
| 2 | +module.exports = { |
| 3 | + siteMetadata: { |
| 4 | + postURLPrefix: 'blogs', |
| 5 | + pageURLPrefix: '', |
| 6 | + }, |
| 7 | + plugins: [ |
| 8 | + `gatsby-plugin-typescript`, |
| 9 | + { |
| 10 | + resolve: 'gatsby-plugin-graphql-codegen', |
| 11 | + options: { |
| 12 | + fileName: `types/graphql-types.d.ts` |
| 13 | + } |
| 14 | + }, |
| 15 | + "gatsby-plugin-react-helmet", |
| 16 | + { |
| 17 | + resolve: "gatsby-source-wordpress", |
| 18 | + options: { |
| 19 | + /* |
| 20 | + * The base URL of the WordPress site without the trailingslash and the protocol. This is required. |
| 21 | + * Example : 'demo.wp-api.org' or 'www.example-site.com' |
| 22 | + */ |
| 23 | + baseUrl: "b5d85ac952f05c2bcb7e0b42979eff431beac2f1.hl-a.getshifter.co", |
| 24 | + // The protocol. This can be http or https. |
| 25 | + protocol: "https", |
| 26 | + // The rest api route prefix that your WordPress site is using. |
| 27 | + // Sometimes this is modified by WordPress plugins. |
| 28 | + // If not set, it uses the default of "wp-json" |
| 29 | + restApiRoutePrefix: "wp-json", |
| 30 | + // Indicates whether the site is hosted on wordpress.com. |
| 31 | + // If false, then the assumption is made that the site is self hosted. |
| 32 | + // If true, then the plugin will source its content on wordpress.com using the JSON REST API V2. |
| 33 | + // If your site is hosted on wordpress.org, then set this to false. |
| 34 | + hostingWPCOM: false, |
| 35 | + // If useACF is true, then the source plugin will try to import the WordPress ACF Plugin contents. |
| 36 | + // This feature is untested for sites hosted on wordpress.com. |
| 37 | + // Defaults to true. |
| 38 | + useACF: false, |
| 39 | + // Set verboseOutput to true to display a verbose output on `npm run develop` or `npm run build` |
| 40 | + // It can help you debug specific API Endpoints problems. |
| 41 | + verboseOutput: false, |
| 42 | + // Set how many pages are retrieved per API request. |
| 43 | + perPage: 100, |
| 44 | + // Search and Replace Urls across WordPress content. |
| 45 | + // searchAndReplaceContentUrls: { |
| 46 | + // sourceUrl: "https://central.wordcamp.org", |
| 47 | + // replacementUrl: "https://localhost:8000", |
| 48 | + // }, |
| 49 | + includedRoutes: [ |
| 50 | + "**/posts", |
| 51 | + "**/pages", |
| 52 | + ] |
| 53 | + }, |
| 54 | + }, |
| 55 | + { |
| 56 | + resolve: `gatsby-plugin-manifest`, |
| 57 | + options: { |
| 58 | + name: `WPGatsby Example`, |
| 59 | + short_name: `WPGatsby`, |
| 60 | + start_url: `/`, |
| 61 | + background_color: `#ffffff`, |
| 62 | + theme_color: `#00bfff`, |
| 63 | + display: `standalone`, |
| 64 | + }, |
| 65 | + }, |
| 66 | + `gatsby-plugin-offline`, |
| 67 | + ], |
| 68 | +} |
0 commit comments