[Bug]: When using next export
, cache not found
#1192
Labels
type: bug
code to address defects in shipped code
next export
, cache not found
#1192
Summary
According to the docs, this plugin should be able to handle caching the build folder from a
next export
ed project. However in practice, the plugin seems to be looking at the publish directory for the cache folder, which would not exist when you publish theout/
directory, like in the demo project.https://github.com/netlify/netlify-plugin-nextjs/blob/b27c2f299c47ff387e726f76ad03847271e9d8e5/src/helpers/cache.ts#L13-L22
In this case you would want to cache the
.next/cache
folder, because the.next
folder is what actually gets built -- the export command pulls the data it needs from the.next
folder.Steps to reproduce
Plugin version
v4.2.3
Your netlify.toml file
`netlify.toml`
Builds logs (or link to your logs)
Build logs
The text was updated successfully, but these errors were encountered: