summaryrefslogtreecommitdiff
path: root/examples/docs/astro.config.mjs
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2022-03-18 15:35:45 -0700
committerGravatar GitHub <noreply@github.com> 2022-03-18 15:35:45 -0700
commit6386c14d00d1d820804f0ee5b1424e73c049fe83 (patch)
tree3015e834e1d84100fd0871f6a55479bed61c0c14 /examples/docs/astro.config.mjs
parent0f376a7c52d3a22ff32b33e0afc34dd306ed70c4 (diff)
downloadastro-6386c14d00d1d820804f0ee5b1424e73c049fe83.tar.gz
astro-6386c14d00d1d820804f0ee5b1424e73c049fe83.tar.zst
astro-6386c14d00d1d820804f0ee5b1424e73c049fe83.zip
Astro Integration System (#2820)
* update examples * add initial integrations * update tests * update astro * update ci * get final tests working * update injectelement todo * update ben code review * respond to final code review feedback
Diffstat (limited to 'examples/docs/astro.config.mjs')
-rw-r--r--examples/docs/astro.config.mjs12
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/docs/astro.config.mjs b/examples/docs/astro.config.mjs
index 9f97b3a89..7ae8d6f7b 100644
--- a/examples/docs/astro.config.mjs
+++ b/examples/docs/astro.config.mjs
@@ -1,11 +1,13 @@
import { defineConfig } from 'astro/config';
+import preact from '@astrojs/preact';
+import react from '@astrojs/react';
// https://astro.build/config
export default defineConfig({
- renderers: [
- // Enable the Preact renderer to support Preact JSX components.
- '@astrojs/renderer-preact',
- // Enable the React renderer, for the Algolia search component
- '@astrojs/renderer-react',
+ integrations: [
+ // Enable Preact to support Preact JSX components.
+ preact(),
+ // Enable React for the Algolia search component.
+ react(),
],
});