You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 2, 2022. It is now read-only.
A [Netlify plugin](https://www.netlify.com/build/plugins-beta/) which is [published on npm](https://www.npmjs.com/package/netlify-plugin-cache-nextjs).
9
9
10
10
## Usage
@@ -20,6 +20,20 @@ To install, add the following lines to your `netlify.toml` file:
20
20
package = "netlify-plugin-cache-nextjs"
21
21
```
22
22
23
+
And if you want to configure the plugin:
24
+
25
+
```toml
26
+
[[plugins]]
27
+
package = "netlify-plugin-cache-nextjs"
28
+
29
+
# These options will cache the build directory at `${NETLIFY_BASE}/frontend/.next-build`
30
+
[plugins.inputs]
31
+
# The path to the build directory
32
+
build_dir_path = "frontend"
33
+
# Custom build directory if you aren't using `.next` (https://nextjs.org/docs/api-reference/next.config.js/setting-a-custom-build-directory)
34
+
custom_build_dir_name = ".next-build"
35
+
```
36
+
23
37
Note: The `[[plugins]]` line is required for each plugin, even if you have other plugins in your `netlify.toml` file already.
0 commit comments