diff options
author | 2022-02-16 14:50:05 +0000 | |
---|---|---|
committer | 2022-02-16 14:50:05 +0000 | |
commit | 19d548f400dc200ddd0e682520899a862c4d668a (patch) | |
tree | 07fd5212ffe8c521895714f667b053ec83195853 | |
parent | ebe7f4d0ae53f8f5d1165f1e052b17a449666683 (diff) | |
download | astro-19d548f400dc200ddd0e682520899a862c4d668a.tar.gz astro-19d548f400dc200ddd0e682520899a862c4d668a.tar.zst astro-19d548f400dc200ddd0e682520899a862c4d668a.zip |
[ci] yarn format
-rw-r--r-- | packages/astro/CHANGELOG.md | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index e6041714a..b077a9eb2 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -17,12 +17,12 @@ ```typescript // src/pages/company.json.ts export async function get() { - return { - body: JSON.stringify({ - name: 'Astro Technology Company', - url: 'https://astro.build/', - }), - }; + return { + body: JSON.stringify({ + name: 'Astro Technology Company', + url: 'https://astro.build/', + }), + }; } ``` @@ -62,10 +62,9 @@ createServer((req, res) => { const route = app.match(req); - if(route) { + if (route) { let html = await app.render(req, route); } - }).listen(8080); ``` @@ -1378,10 +1377,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve ```js export default { - markdownOptions: { - remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]], - rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]], - }, + markdownOptions: { + remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]], + rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]], + }, }; ``` @@ -1401,10 +1400,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve ```js export default { - name: '@matthewp/my-renderer', - server: './server.js', - client: './client.js', - hydrationPolyfills: ['./my-polyfill.js'], + name: '@matthewp/my-renderer', + server: './server.js', + client: './client.js', + hydrationPolyfills: ['./my-polyfill.js'], }; ``` |