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
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.
27
28
28
29
#### Patch fetch behaviour for ISR. Only for next@13.5.1+
29
30
30
-
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.
Copy file name to clipboardExpand all lines: docs/pages/config.mdx
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
1
### Build Arguments
2
2
3
-
There is a single build argument that you can pass to the `open-next build` command:
3
+
There is two build arguments that you can pass to the `open-next build` command:
4
+
4
5
-`--config-path` - This is the path to the configuration file that you want to use. By default, it will look for `open-next.config.ts` in the current working directory. This needs to be relative to the current working directory.
6
+
-`--node-externals` - You can configure externals for the esbuild compilation of the `open-next.config.ts` file (i.e `--node-externals @aws-sdk/*,open-next/dist/queue/*`)
5
7
6
8
### Configuration File
7
9
@@ -13,4 +15,4 @@ If you want to take a look at some simple configuration examples, you can check
13
15
14
16
For more advanced use cases, you can check [how to implement custom overrides](/config/custom_overrides).
15
17
16
-
If you want to look at a full example, you can check [the full example](/config/full_example).
18
+
If you want to look at a full example, you can check [the full example](/config/full_example).
0 commit comments