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
Copy file name to clipboardExpand all lines: docs/pages/common_issues.mdx
+29-7Lines changed: 29 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
#### Debug mode
1
+
#### Debug mode
2
2
3
-
OpenNext can be executed in debug mode by setting the environment variable `OPEN_NEXT_DEBUG=true`.
3
+
OpenNext can be executed in debug mode by setting the environment variable `OPEN_NEXT_DEBUG=true`.
4
4
5
5
This will output **A LOT** of additional logs to the console.This also disable minifying in esbuild, and add source maps to the output. This can result in code that might be up to 2-3X larger than the production build. **Do not enable this in production**
6
6
@@ -23,20 +23,42 @@ experimental: {
23
23
},
24
24
},
25
25
```
26
+
26
27
Also you should not add sharp as a dependencies unless absolutely necessary, the image optimization already has it's own version of sharp.
If you use ISR and fetch in your app, you may encounter a bug that makes your revalidate values inconsistent.
31
+
If you use ISR and fetch in your app, you may encounter a bug that makes your revalidate values inconsistent.
31
32
The issue is that it revalidates using the lowest revalidate of all fetch calls in your page, regardless of their individual values. To fix this bug, you need to modify the fetch function in your root layout component with the following code snippet
This can also happen in app router when a client navigates via NextJS `<Link>` component.
63
+
64
+
The issue might be that your having a folder or file in your `public` directory with an overlapping between the name and your route. In this case, you should rename that to something else.
0 commit comments