scriptHandler
Esta página aún no está disponible en tu idioma.
Variables
Section titled “Variables”scriptHandler
Section titled “scriptHandler”const scriptHandler: HookUtility<"astro:config:setup", [Options], Promise<void>>;
Defined in: studiocms/packages/studiocms/src/scriptHandler.ts:36^
Handles the injection of scripts during the Astro config setup phase.
Utility
Section titled “Utility”astro:config:setup
An object containing the injectScript
function used to inject scripts at specific stages.
Configuration options for script injection.
Indicates if the database start page is active; disables quick actions menu script if true.
Enables injection of the quick actions menu script if true.
An optional array of additional scripts to inject.
Remarks
Section titled “Remarks”- Reads and injects the
user-quick-tools.js
script ifinjectQuickActionsMenu
is enabled anddbStartPage
is false. - Appends any extra scripts provided in the
extraScripts
option. - Only scripts marked as
enabled
are injected at their specified stage.