mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 11:22:30 +02:00
fix(core): better error logging on SSR/dev failures + log stacktraces and error causes (#8872)
This commit is contained in:
parent
46d2aa231d
commit
a9a5f89b9f
13 changed files with 155 additions and 75 deletions
|
@ -42,6 +42,11 @@ function getNextVersionName() {
|
|||
*/
|
||||
}
|
||||
|
||||
// Artificial way to crash the SSR rendering and test errors
|
||||
// See website/_dogfooding/_pages tests/crashTest.tsx
|
||||
// Test with: DOCUSAURUS_CRASH_TEST=true yarn build:website:fast
|
||||
const crashTest = process.env.DOCUSAURUS_CRASH_TEST === 'true';
|
||||
|
||||
const isDev = process.env.NODE_ENV === 'development';
|
||||
|
||||
const isDeployPreview =
|
||||
|
@ -139,6 +144,7 @@ const config = {
|
|||
onBrokenMarkdownLinks: 'warn',
|
||||
favicon: 'img/docusaurus.ico',
|
||||
customFields: {
|
||||
crashTest,
|
||||
isDeployPreview,
|
||||
description:
|
||||
'An optimized site generator in React. Docusaurus helps you to move fast and write content. Build documentation websites, blogs, marketing pages, and more.',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue