Open haykam821 opened 1 year ago
I'm having the same issue with
withContentlayer()
. A lot of Next.js "plugins" wrap the config in this way, which doesn't seem to work with this action.
Weird that no workaround or fix has been proposed here
This action seems to support wrapping calls already, but the functionality for doing so seems to not be enabled. The ConfigParser
constructor simply needs to be passed allowWrappingCall: true
in its settings:
The parsing for wrapping calls only seems to allow one wrapping call, though, so multiple higher-order functions would not be usable even if allowWrappingCall: true
was specified.
I've raised a PR to introduce @haykam821's fix here: https://github.com/actions/configure-pages/pull/161.
I am working on migrating a web application to Next.js in this repo. However, I am running into an issue where the
basePath
is seemingly not injected.My configuration looks like the following:
However, the step using the
actions/configure-pages
action outputs this warning from #43:Other than the fact that the
next.config.js
configuration uses the.js
extension, it seems that the action fails to inject properties into a configuration wrapped by a higher-orderwithPWA
function. A more useful error is not logged, so this issue is hard to diagnose.