feat(core): async docusaurus.config.js creator function (#6165)

This commit is contained in:
Sébastien Lorber 2021-12-22 17:03:01 +01:00 committed by GitHub
parent 5dcfa8fa23
commit f8a670966e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 249 additions and 16 deletions

View file

@ -515,4 +515,12 @@ const config = {
}),
};
module.exports = config;
// TODO temporary dogfood async config, remove soon
async function createConfig() {
await new Promise((resolve) => {
setTimeout(resolve, 0);
});
return config;
}
module.exports = createConfig;