Installing astro-vtbot
astro-vtbot
can be installed as a full Astro integration or as a node package. Both ways install the package as a dependency in your project and allow you to import its components and scripts in your own pages. Installing as an integration in addition gives you access to The Bag’s DevToolbar App with the ability to open the Inspection Chamber on any page during dev mode.
If you’re unsure, go with installing it as an integration!
Contents
Installing as an Astro integration
Installing astro-vtbot
as an Astro integration will install the package and it will add the Bag’s devToolbar app that lets you open the InspectionChamber on any page during development mode.
To install astro-vtbot
as an Astro integration, run the astro add
command in your project directory …
… and press the return key trice to answer the questions with “yes”:
If you have Astro’s DevToolbar enabled, The Bag will show up as a new app there and will give you access to the InspectionChamber on every page without any further modification of your project.
Changes introduced with astro-vtbot 2.0
Installing astro-vtbot as an integration used to add vtbot
’s <LoadingIndicator />
component and <Linter />
component to all pages that use Astro’s <ClientRouter />
. This behavior was changes in 2.0: None of these features will be added automatically anymore.
You can still get the former behavior by explicitly setting the loadingIndicator
option and/or the autoLint
option of vtbot
in your astro.config
file to true
(the default is now false
):
As an alternative to the loadingIndicator, you can also add the <ProgressBar />
component to your Layout.astro.
Installing as a node package
To install astro-vtbot
as a node package without the integration, run the following command in your project directory: