diff options
author | 2022-03-15 15:27:17 -0500 | |
---|---|---|
committer | 2022-03-15 15:27:17 -0500 | |
commit | 2b76ee8d75d44492af18b9ead35293da7178930a (patch) | |
tree | 067e3732e6a0ffff70a3b7e38d7bb53c30341bf8 /examples/blog-multiple-authors/astro.config.mjs | |
parent | 2d95541b52118f787144720cb28cdd64644b903a (diff) | |
download | astro-2b76ee8d75d44492af18b9ead35293da7178930a.tar.gz astro-2b76ee8d75d44492af18b9ead35293da7178930a.tar.zst astro-2b76ee8d75d44492af18b9ead35293da7178930a.zip |
Export defineConfig helper (#2803)
* feat: add astro/config entrypoint
* chore: update examples to use `defineConfig` util
* chore: prettier fix
* chore: add changeset
Diffstat (limited to 'examples/blog-multiple-authors/astro.config.mjs')
-rw-r--r-- | examples/blog-multiple-authors/astro.config.mjs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/examples/blog-multiple-authors/astro.config.mjs b/examples/blog-multiple-authors/astro.config.mjs index a1516f292..a024b64b4 100644 --- a/examples/blog-multiple-authors/astro.config.mjs +++ b/examples/blog-multiple-authors/astro.config.mjs @@ -1,13 +1,7 @@ -// Full Astro Configuration API Documentation: -// https://docs.astro.build/reference/configuration-reference +import { defineConfig } from 'astro/config'; -// @type-check enabled! -// VSCode and other TypeScript-enabled text editors will provide auto-completion, -// helpful tooltips, and warnings if your exported object is invalid. -// You can disable this by removing "@ts-check" and `@type` comments below. - -// @ts-check -export default /** @type {import('astro').AstroUserConfig} */ ({ +// https://astro.build/config +export default defineConfig({ // Enable the Preact renderer to support Preact JSX components. renderers: ['@astrojs/renderer-preact'], }); |