#Astro
RSSフィードPagefindをローカル開発時でも動作させる
Pagefindの利用例を調べると、開発時はダミーデータを渡している実装しか見つからなかったが、ダミーデータの作成やコード上の分岐が増えることが億劫だったため、開発時も本番相当のデータが表示されるようにした。
All Posts
Pagefindをローカル開発時でも動作させる
Pagefindの利用例を調べると、開発時はダミーデータを渡している実装しか見つからなかったが、ダミーデータの作成やコード上の分岐が増えることが億劫だったため、開発時も本番相当のデータが表示されるようにした。
外部にあるmarkdownファイルをAstroのContent collectionsに追加する
Astro 5.12.3 で、GitHub プロフィールをそのまま About ページに表示したくなった。 そこで他のリポジトリで公開している README.md を取得する loader を作成した。
AstroではGoogle Fontsを直接利用しない方が良いかもしれない
Astroはstylesheetを巻き上げてしまうため、preconnectなどの指定より前にGoogle Fontsの読み込みが開始されパフォーマンスが悪化する可能性がある。
Astro 5へのマイグレーションを行った
公式ドキュメントなどを参考にAstro 5へのマイグレーションを個人的に行った際のメモ
AstroでMarkdownのレンダリングにカスタムコンポーネントを利用する
AstroではMarkdownファイルにMDXやMarkdocと同様のAPIが利用できないため、Gatsybyなどの同様にremarkなどのpluginを利用する必要がある。
News bits
Astro 6.0 リリース、本番近いランタイムでの dev と Fonts・ライブコレクション・CSP
Vite の Environment API で dev と build のコードパス統合、組み込み Fonts API、リクエスト時取得の Live Content Collections、Content Security Policy API の安定化、Vite 7・Shiki 4・Zod 4、Node 22 以上必須。実験的 Rust コンパイラ・Queued Rendering・Route Caching も。
AstroをCloudflareが買収
Astroの開発元であるThe Astro Technology CompanyがCloudflareに参加することを発表した。Astro 6のリリースを控え、adoptionが毎年倍増する中、Cloudflareのリソースとサポートを得て開発を加速させる。
Astro 5.9.0 リリース
Astro 5.9.0 がリリース。実験的な Content Security Policy(CSP)サポートの追加、コンテンツローダーでの Markdown レンダラーの提供、アダプターの警告/エラー抑制オプションの追加など。
Astro 5.7 リリース
Astro 5.7 がリリースされた。Sessions API が安定化され、SVG Components、Experimental Fonts API、Config Imports などの新機能が追加された。
Astro 5.3
Astro 5.3 がリリース。
Astro 5.1
Astro 5.1 がリリースされた。画像のキャッシュ改善や、アクションのパスを返すgetActionPath()ヘルパーの追加など。
Astro 5.0
Astro 5.0 がリリースされた。
Astro 4.15.0
Astro Actions が安定版になった。
Astro 4.14.0 Content Layer API
Astro 4.14.0 で、Content Layer API が追加された。
The Future of Astro
Astro が 2024 年に予定している機能が紹介されていた。
Astro 4.9
5 月 9 日に Astro 4.9 がリリースされました。実験的な機能ですが、サーバサイドでコードを実行する Astro Actions とリクエストのリライト機能が追加されました。
Astro 4.1
2024 年 1 月 4 日に Astro 4.1 にリリースされました。
Astro 4.0
2023 年 12 月 5 日に Astro 4.0 がリリースされました。
Astro 3.4: Page Partials
2023 年 10 月 26 日に Astro 3.4 がリリースされました。
Astro 3.5: i18n Routing
2023 年 11 月 8 日に Astro 3.5 がリリースされました。
Astro 3.3: Picture component
https://astro.build/blog/astro-330/
Astro 3.2
https://astro.build/blog/astro-320/
Astro Studio
Astro に特化したホスティングサービスとして Astro Studio が発表されました。2024 年初頭での一般公開が予定されています。 ### 参考文献
Astro v3.0
Astro v3.0 がリリース。
Astro 2.5
Astro 2.5 がリリース。 ### 参考文献
著者について
Hi there. I'm hrdtbs, a frontend expert and technical consultant. I started my career in the creative industry over 13 years ago, learning on the job as a 3DCG modeler and game engineer in the indie scene.
In 2015 I began working as a freelance web designer and engineer. I handled everything from design and development to operation and advertising, delivering comprehensive solutions for various clients.
In 2016 I joined Wemotion as CTO, where I built the engineering team from the ground up and led the development of core web and mobile applications for three years.
In 2019 I joined matsuri technologies as a Frontend Expert, and in 2020 I also began serving as a technical manager supporting streamers and content creators.
I'm so grateful to be working in this field, doing something that brings me so much joy. Thanks for stopping by.