summaryrefslogtreecommitdiff
path: root/examples/docs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/docs')
-rw-r--r--examples/docs/astro.config.mjs12
-rw-r--r--examples/docs/package.json4
2 files changed, 9 insertions, 7 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(),
],
});
diff --git a/examples/docs/package.json b/examples/docs/package.json
index 60000c43f..ab596ccce 100644
--- a/examples/docs/package.json
+++ b/examples/docs/package.json
@@ -17,8 +17,8 @@
"react-dom": "^17.0.2"
},
"devDependencies": {
- "@astrojs/renderer-preact": "^0.5.0",
- "@astrojs/renderer-react": "^0.5.0",
+ "@astrojs/preact": "^0.0.1",
+ "@astrojs/react": "^0.0.1",
"astro": "^0.24.3"
}
}