mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
18 lines
488 B
TypeScript
18 lines
488 B
TypeScript
|
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;
|