diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 4f3e7e688..a5299726c 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -8,5 +8,5 @@ export default /** @type {import('astro').AstroUserConfig} */ ({ '@astrojs/renderer-preact', // Needed for Algolia search component '@astrojs/renderer-react', - ] + ], }); diff --git a/docs/src/pages/migration/0.21.0.md b/docs/src/pages/migration/0.21.0.md index 5b7847cb4..bc3ce72a0 100644 --- a/docs/src/pages/migration/0.21.0.md +++ b/docs/src/pages/migration/0.21.0.md @@ -12,19 +12,17 @@ As a result, configurations written in `snowpack.config.mjs` should be moved int ```js // @ts-check -/** @type {import('astro').AstroUserConfig} */ -export default ({ +/** @type {import('astro').AstroUserConfig} */ +export default { renderers: [], vite: { - plugins: [] - } -}) + plugins: [], + }, +}; ``` To learn more about configuring Vite, please visit their [configuration guide](https://vitejs.dev/config/). - - ## Aliasing In Astro v0.21, import aliases can be added from `tsconfig.json` or `jsconfig.json`. @@ -42,8 +40,6 @@ In Astro v0.21, import aliases can be added from `tsconfig.json` or `jsconfig.js _These aliases are integrated automatically into [VSCode](https://code.visualstudio.com/docs/languages/jsconfig) and other editors._ - - ## Variables in Scripts & Styles In Astro v0.21, server-side variables can be passed into client-side `