diff options
author | 2023-01-27 00:33:00 +0530 | |
---|---|---|
committer | 2023-01-26 13:03:00 -0600 | |
commit | 1c7eef308e808aa5ed4662b53e67ec8d1b814d1f (patch) | |
tree | db310a2ce6c92ecc82bd75424f5f471ad0e72605 /packages/integrations/solid | |
parent | 607f0ac31a43595252bc647c01ac4b75fc774202 (diff) | |
download | astro-1c7eef308e808aa5ed4662b53e67ec8d1b814d1f.tar.gz astro-1c7eef308e808aa5ed4662b53e67ec8d1b814d1f.tar.zst astro-1c7eef308e808aa5ed4662b53e67ec8d1b814d1f.zip |
Updated according to new configuration (#5478)
* Updated according to new configuration
Astro imports the `defineConfig` function from `astro/config`. The `integrations` key needs to be passed into the `defineConfig` function, but it is not shown in the README. Updated the README according to the CLI example.
* update alpine
* update image
* update lit
* update mdx
* update preact
* update prefetch
* update react
* update sitemap
* update solid
* update svelte
* update tailwind
* update turbolinks
* update vue
* chore: add changeset
* update image
* update svelte readme
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/solid')
-rw-r--r-- | packages/integrations/solid/README.md | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/integrations/solid/README.md b/packages/integrations/solid/README.md index 89579fb4a..338951bf2 100644 --- a/packages/integrations/solid/README.md +++ b/packages/integrations/solid/README.md @@ -43,13 +43,14 @@ Now, apply this integration to your `astro.config.*` file using the `integration __`astro.config.mjs`__ -```js +```js ins={2} "solid()" +import { defineConfig } from 'astro/config'; import solid from '@astrojs/solid-js'; -export default { - // ... - integrations: [solid()], -} +export default defineConfig({ + // ... + integrations: [solid()], +}); ``` ## Getting started |