Skip to content

Commit 7faa8e4

Browse files
committed
Merge branch 'master' into fix/static-image-formats-2
2 parents 34a6a9b + 1c750b6 commit 7faa8e4

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

benchmarks/source-wordpress/scripts/updater.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const fetchGraphql = require(`gatsby-source-wordpress-experimental/utils/fetch-graphql`)
1+
const fetchGraphql = require(`gatsby-source-wordpress-experimental/dist/utils/fetch-graphql`)
22
.default
33

44
const faker = require(`faker`)

docs/docs/file-system-route-api.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ export default function Component(props) {
125125
// to connect to this GraphQL query.
126126

127127
export const query = graphql`
128-
query ($id: String) {
128+
query($id: String) {
129129
product(id: { eq: $id }) {
130130
fields {
131131
sku
132132
}
133133
}
134134
}
135-
}
135+
`
136136
```
137137

138138
If you need to customize the query used for collecting the nodes (e.g. filtering out any product of type "Food"), you should use the [`createPages`](/docs/node-apis#createPages) API instead as File System Route API doesn't support this at the moment.
@@ -170,7 +170,8 @@ export default function HomePage(props) {
170170
<ul>
171171
{props.data.allProduct.map(product => (
172172
<li key={product.name}>
173-
<Link to={product.productPath}>{product.name}</Link> (<Link to={product.discountPath}>Discount</Link>) // highlight-line
173+
<Link to={product.productPath}>{product.name}</Link> (
174+
<Link to={product.discountPath}>Discount</Link>) // highlight-line
174175
</li>
175176
))}
176177
</ul>
@@ -185,7 +186,7 @@ export const query = graphql`
185186
discountPath: gatsbyPath(filePath: "/discounts/{Product.name}") // highlight-line
186187
}
187188
}
188-
}
189+
`
189190
```
190191

191192
By using [aliasing](/docs/graphql-reference/#aliasing) you can use `gatsbyPath` multiple times.

packages/gatsby-plugin-sharp/src/image-data.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export async function generateImageData({
252252
file,
253253
args: {
254254
...options,
255-
...args.transformOptions,
255+
...transformOptions,
256256
fit,
257257
cropFocus,
258258
toFormatBase64: args.blurredOptions?.toFormat,

0 commit comments

Comments
 (0)