Skip to content

Commit 0c8f948

Browse files
committed
chore(docs): Add DSG webpack limitation
1 parent 87a3412 commit 0c8f948

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/docs/reference/rendering-options/deferred-static-generation.md

+4
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ module.exports = {
9595
}
9696
```
9797

98+
### DSG engine doesn't support `onCreateWebpackConfig`
99+
100+
If you're modifying Gatsby's webpack configuration through [`onCreateWebpackConfig`](/docs/reference/config-files/gatsby-node/#onCreateWebpackConfig) those changes won't be applied to the DSG engine. The DSG engine is bundling everything it needs to run GraphQL queries, including your `gatsby-node` file with its `createResolvers` or `createSchemaCustomization` APIs. If you import/use files in those APIs that rely on your custom webpack changes (e.g. path aliases) it won't work.
101+
98102
## Additional Resources
99103

100104
- [How-To Guide: Using Deferred Static Generation](/docs/how-to/rendering-options/using-deferred-static-generation/)

0 commit comments

Comments
 (0)