diff --git a/.changeset/yellow-dolphins-buy.md b/.changeset/yellow-dolphins-buy.md new file mode 100644 index 0000000000..63589b5621 --- /dev/null +++ b/.changeset/yellow-dolphins-buy.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Hydrated component fix with the static build diff --git a/examples/blog/src/components/BaseHead.astro b/examples/blog/src/components/BaseHead.astro index e5745e196e..f39f773380 100644 --- a/examples/blog/src/components/BaseHead.astro +++ b/examples/blog/src/components/BaseHead.astro @@ -1,4 +1,6 @@ --- + + export interface Props { title: string; description: string; @@ -34,3 +36,6 @@ const { title, description, permalink } = Astro.props; + diff --git a/examples/blog/src/layouts/BlogPost.astro b/examples/blog/src/layouts/BlogPost.astro index e6bb0a6c77..bf682b7ae2 100644 --- a/examples/blog/src/layouts/BlogPost.astro +++ b/examples/blog/src/layouts/BlogPost.astro @@ -3,6 +3,7 @@ import BaseHead from '../components/BaseHead.astro'; import BlogHeader from '../components/BlogHeader.astro'; import BlogPost from '../components/BlogPost.astro'; + const { content } = Astro.props; const { title, description, publishDate, author, heroImage, permalink, alt } = content; --- @@ -10,7 +11,6 @@ const { title, description, publishDate, author, heroImage, permalink, alt } = c - diff --git a/examples/blog/src/pages/index.astro b/examples/blog/src/pages/index.astro index 9a2178ed00..c7bc3ea32e 100644 --- a/examples/blog/src/pages/index.astro +++ b/examples/blog/src/pages/index.astro @@ -28,7 +28,6 @@ allPosts = allPosts.sort((a, b) => new Date(b.publishDate).valueOf() - new Date( -