fix: improve plugins functionality with server management
This commit is contained in:
@@ -72,7 +72,11 @@ export async function resolveDocusaurusRoute(pathname: string): Promise<{ filePa
|
||||
const root = await getDocusaurusBuildRoot();
|
||||
|
||||
if (!root) {
|
||||
throw new HttpError(503, 'Docusaurus build is not available. Run npm run build:docs before opening the docs endpoint.', 'DOCUSAURUS_BUILD_MISSING');
|
||||
throw new HttpError(
|
||||
503,
|
||||
'Docusaurus build is not available. Run npm run build:docs before opening the docs endpoint.',
|
||||
'DOCUSAURUS_BUILD_MISSING'
|
||||
);
|
||||
}
|
||||
|
||||
let filePath = resolveAssetPath(root, pathname);
|
||||
|
||||
Reference in New Issue
Block a user