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: README.md
+14-13
Original file line number
Diff line number
Diff line change
@@ -172,24 +172,25 @@ yarn dx
172
172
```
173
173
174
174
#### Development tip
175
+
1. Add `export NODE_OPTIONS=“--max-old-space-size=16384”` to your shell script to increase the memory limit for the node process. Alternatively, you can run this in your terminal before running the app. Replace 16384 with the amount of RAM you want to allocate to the node process.
175
176
176
-
Add `NEXT_PUBLIC_LOGGER_LEVEL={level}` to your .env file to control the logging verbosity for all tRPC queries and mutations.\
177
-
Where {level} can be one of the following:
177
+
2.Add `NEXT_PUBLIC_LOGGER_LEVEL={level}` to your .env file to control the logging verbosity for all tRPC queries and mutations.\
178
+
Where {level} can be one of the following:
178
179
179
-
`0` for silly \
180
-
`1` for trace \
181
-
`2` for debug \
182
-
`3` for info \
183
-
`4` for warn \
184
-
`5` for error \
185
-
`6` for fatal
180
+
`0` for silly \
181
+
`1` for trace \
182
+
`2` for debug \
183
+
`3` for info \
184
+
`4` for warn \
185
+
`5` for error \
186
+
`6` for fatal
186
187
187
-
When you set `NEXT_PUBLIC_LOGGER_LEVEL={level}` in your .env file, it enables logging at that level and higher. Here's how it works:
188
+
When you set `NEXT_PUBLIC_LOGGER_LEVEL={level}` in your .env file, it enables logging at that level and higher. Here's how it works:
188
189
189
-
The logger will include all logs that are at the specified level or higher. For example: \
190
+
The logger will include all logs that are at the specified level or higher. For example: \
190
191
191
-
- If you set `NEXT_PUBLIC_LOGGER_LEVEL=2`, it will log from level 2 (debug) upwards, meaning levels 2 (debug), 3 (info), 4 (warn), 5 (error), and (fatal) will be logged. \
192
-
- If you set `NEXT_PUBLIC_LOGGER_LEVEL=3`, it will log from level 3 (info) upwards, meaning levels 3 (info), 4 (warn), 5 (error), and 6 (fatal) will be logged, but level 2 (debug) and level 1 (trace) will be ignored. \
192
+
- If you set `NEXT_PUBLIC_LOGGER_LEVEL=2`, it will log from level 2 (debug) upwards, meaning levels 2 (debug), 3 (info), 4 (warn), 5 (error), and (fatal) will be logged. \
193
+
- If you set `NEXT_PUBLIC_LOGGER_LEVEL=3`, it will log from level 3 (info) upwards, meaning levels 3 (info), 4 (warn), 5 (error), and 6 (fatal) will be logged, but level 2 (debug) and level 1 (trace) will be ignored. \
0 commit comments