0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/examples/toolbar-app/src/integration.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
488 B
TypeScript
Raw Normal View History

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;