summaryrefslogtreecommitdiff
path: root/examples/toolbar-app/src/integration.ts
diff options
context:
space:
mode:
Diffstat (limited to 'examples/toolbar-app/src/integration.ts')
-rw-r--r--examples/toolbar-app/src/integration.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/toolbar-app/src/integration.ts b/examples/toolbar-app/src/integration.ts
new file mode 100644
index 000000000..81597cf6e
--- /dev/null
+++ b/examples/toolbar-app/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;