docusaurus-plugin-remote-content icon indicating copy to clipboard operation
docusaurus-plugin-remote-content copied to clipboard

CLI Sync runs every instance of the plugin

Open motionsuggests opened this issue 3 years ago • 4 comments

Running CLI Sync mode runs every instance of the plugin.

When I have two or more instances of the plugin in my docusaurus.config.js and I use the CLI Sync mode with docusaurus download-remote-fakeRepoOne it actually runs every instance of the plugin.

Related to: https://github.com/rdilweb/docusaurus-plugin-remote-content/issues/45

motionsuggests avatar Nov 01 '22 21:11 motionsuggests

Will fix this later today.

RDIL avatar Nov 02 '22 16:11 RDIL

After doing some investigating, it appears this only happens if noRuntimeDownloads is disabled. Can you check if that is the case in your config?

RDIL avatar Nov 07 '22 00:11 RDIL

Setting noRuntimeDownloads: true does fix the issue.

motionsuggests avatar Nov 07 '22 17:11 motionsuggests

Worth noting that this is still a bug, one which will require a pretty ugly hack.

RDIL avatar Nov 10 '22 20:11 RDIL