diff options
author | 2025-06-05 12:45:02 +0000 | |
---|---|---|
committer | 2025-06-05 12:45:02 +0000 | |
commit | ee1d83ccf2ede53cb7198d7694545704ba14d410 (patch) | |
tree | 0b93dc64c37a394baf2f50539afcef6471c0f566 /src/integration.ts | |
download | astro-examples/toolbar-app.tar.gz astro-examples/toolbar-app.tar.zst astro-examples/toolbar-app.zip |
Sync from 0947a69192ad6820970902c7c951fb0cf31fcf4bexamples/toolbar-app
Diffstat (limited to 'src/integration.ts')
-rw-r--r-- | src/integration.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/integration.ts b/src/integration.ts new file mode 100644 index 000000000..81597cf6e --- /dev/null +++ b/src/integration.ts @@ -0,0 +1,17 @@ +import { fileURLToPath } from 'node:url'; +import type { AstroIntegration } from 'astro'; + +// API Reference: https://docs.astro.build/en/reference/integrations-reference/ +export default { + name: 'my-astro-integration', + hooks: { + 'astro:config:setup': ({ addDevToolbarApp }) => { + addDevToolbarApp({ + id: "my-toolbar-app", + name: "My Toolbar App", + icon: "🚀", + entrypoint: fileURLToPath(new URL('./app.js', import.meta.url)) + }); + }, + }, +} satisfies AstroIntegration; |