Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix): docs preview server is fault tolerant to invalid docs.yml files #3648

Merged

Conversation

dsinghvi
Copy link
Member

When the docs preview server is run with fern dev docs and the docs.yml becomes invalid, the preview server would exit 1 without a clear message of what went wrong.

With this change:

  1. the preview server catches any errors that are thrown when going from project -> DocsDefinition
  2. if an error is thrown, the docs.yml is validated and the user receives logs about potential validation errors

B/c of the improved error handling, there will always be a site that is rendered on localhost:3000

@dsinghvi dsinghvi marked this pull request as ready for review May 19, 2024 18:45
@dsinghvi dsinghvi merged commit ae875bc into main May 19, 2024
10 checks passed
@dsinghvi dsinghvi deleted the dsinghvi/preview-server-is-fault-tolerant-to-validation-errors branch May 19, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant