Closed ehmicky closed 4 years ago
@ehmicky is there a variable for the base dir? we could do something like
if (PUBLISH_DIR === BASE_DIR) {
failPlugin('your publish directory appears to be misconfigured')
}
The build directory is process.cwd()
inside Build plugins.
The error message above is actually doing something similar but inside the utils.cache
directly.
this was fixed a while back and I forgot to close this
Thanks for updating @jlengstorf. The error has not been triggered in one month indeed :+1:
Many production builds are reporting the following error:
This comes from this line of code in
utils.cache.restore()
.This is turn indicates that either
PUBLISH_DIR
orPUBLISH_DIR/../.cache
is the build/base directory. This seems to be due to a user misconfiguration, but considering the error happened frequently, I will investigate more.If any users having this issue is reading this, feel free to chime in.