Closed dillondotzip closed 1 year ago
Some recipes are out of date and need to be updated.
recipes/secureheaders
recipes/theme-ui
recipes/vanilla-extract
The main thing that that needs to be updated is the use of paths.blitzConfig(). Blitz toolkit exports helpers for transforming next.config.js.
paths.blitzConfig()
next.config.js
You can get the next.config.js path with paths.nextConfig(). transformNextConfig is exported from blitz and returns the following:
paths.nextConfig()
transformNextConfig
program: Program configObj: [] pushToConfig: (property: j.ObjectProperty) => void wrapConfig: (func: string | j.CallExpression) => { withBlitz: j.Identifier | j.CallExpression } addRequireStatement: (identifier: string, packageName: string) => void
(wrapConfig().withBlitz returns whatever is inside withBlitz())
wrapConfig().withBlitz
withBlitz()
Hey @dillonraphael can I work on this?
What is the problem?
Some recipes are out of date and need to be updated.
recipes/secureheaders
recipes/theme-ui
recipes/vanilla-extract
The main thing that that needs to be updated is the use of
paths.blitzConfig()
. Blitz toolkit exports helpers for transformingnext.config.js
.You can get the
next.config.js
path withpaths.nextConfig()
.transformNextConfig
is exported from blitz and returns the following:(
wrapConfig().withBlitz
returns whatever is insidewithBlitz()
)