blob: 81597cf6eed89dc417ae9f2777a2856b3543e2fa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
|