From 002dbb50b11abe6adc2de4501bc29c568fdced76 Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Sat, 16 Sep 2023 22:10:13 +0200 Subject: [PATCH] Website: news --- website/package-lock.json | 1 + website/package.json | 1 + website/src/components/news/ArticleHeader.jsx | 15 ++++ .../news/{01-bref-1.0.md => 01-bref-1.0.mdx} | 30 ++++--- .../news/{02-bref-2.0.md => 02-bref-2.0.mdx} | 90 +++++++++++-------- website/src/pages/news/_meta.json | 4 + 6 files changed, 89 insertions(+), 52 deletions(-) create mode 100644 website/src/components/news/ArticleHeader.jsx rename website/src/pages/news/{01-bref-1.0.md => 01-bref-1.0.mdx} (92%) rename website/src/pages/news/{02-bref-2.0.md => 02-bref-2.0.mdx} (82%) create mode 100644 website/src/pages/news/_meta.json diff --git a/website/package-lock.json b/website/package-lock.json index 812b7ed41..2ba32ae9d 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -9,6 +9,7 @@ "@heroicons/react": "^2.0.18", "@octokit/graphql": "^7.0.1", "next": "^13.4.9", + "next-seo": "^6.1.0", "nextra": "^2.8.0", "nextra-theme-docs": "^2.8.0", "react": "^18.2.0", diff --git a/website/package.json b/website/package.json index 091eec02f..a85050b71 100644 --- a/website/package.json +++ b/website/package.json @@ -10,6 +10,7 @@ "@heroicons/react": "^2.0.18", "@octokit/graphql": "^7.0.1", "next": "^13.4.9", + "next-seo": "^6.1.0", "nextra": "^2.8.0", "nextra-theme-docs": "^2.8.0", "react": "^18.2.0", diff --git a/website/src/components/news/ArticleHeader.jsx b/website/src/components/news/ArticleHeader.jsx new file mode 100644 index 000000000..3d7000014 --- /dev/null +++ b/website/src/components/news/ArticleHeader.jsx @@ -0,0 +1,15 @@ +export default function ArticleHeader({ subTitle, date, author, authorGitHub, ...props }) { + return
+
+ {subTitle} +
+
+ {author} +
+
{date}
+ {author} +
+
+
; +} \ No newline at end of file diff --git a/website/src/pages/news/01-bref-1.0.md b/website/src/pages/news/01-bref-1.0.mdx similarity index 92% rename from website/src/pages/news/01-bref-1.0.md rename to website/src/pages/news/01-bref-1.0.mdx index 1d9f54dd7..e18304ed6 100644 --- a/website/src/pages/news/01-bref-1.0.md +++ b/website/src/pages/news/01-bref-1.0.mdx @@ -1,11 +1,15 @@ ---- -title: Bref 1.0 is released 🎉 -subTitle: Celebrating 1 billion executions per month -layout: news-article -articleDate: November 2020 -author: Matthieu Napoli -authorGithub: mnapoli ---- +import ArticleHeader from '../../components/news/ArticleHeader'; +import { NextSeo } from 'next-seo'; + + + +# Bref 1.0 is released 🎉 + + Bref started in November 2017, 3 years ago. Back then, running PHP on AWS Lambda was experimental at best. @@ -13,7 +17,7 @@ Over the years, as the Bref community grew, as AWS features landed, and as contr Needless to say, **Bref is stable** and has been for a long time. -
+
Indeed, Bref runs more than 1 billion requests and jobs every month!
@@ -143,7 +147,7 @@ Well, you already could, but now it will be a bit easier. > Self-promotion time: I've helped enterprises refactor their microservice architectures using Lambda and SQS/EventBridge. If you are interested, [get in touch to work together](mailto:matthieu@null.tc). You can also check out [Serverless Visually Explained](https://serverless-visually-explained.com/?ref=bref-1.0), it contains examples for those use cases. - +< /self-promo\> Finally, the [`BREF_LOOP_MAX` variable](/docs/environment/performances.mdx#bref-for-event-driven-functions) is now documented, for those ready to keep the PHP process alive between events to accelerate their workers. @@ -257,7 +261,7 @@ Hope you enjoy it! And stay tuned for the AWS re:Invent conference next week! You can also join the community [in Slack](/docs/community.md), post details about your project in [Built with Bref](https://github.com/brefphp/bref/issues/267) or share your experience online. -
- What is Bref and serverless? - Get started with Bref + diff --git a/website/src/pages/news/02-bref-2.0.md b/website/src/pages/news/02-bref-2.0.mdx similarity index 82% rename from website/src/pages/news/02-bref-2.0.md rename to website/src/pages/news/02-bref-2.0.mdx index c3f57fc85..5bf04cea6 100644 --- a/website/src/pages/news/02-bref-2.0.md +++ b/website/src/pages/news/02-bref-2.0.mdx @@ -1,12 +1,24 @@ ---- -title: Bref 2.0 is released 🎉 -subTitle: Celebrating 10 billion executions per month -layout: news-article -articleDate: March 2023 -author: Matthieu Napoli -authorGithub: mnapoli -socialCard: https://bref.sh/docs/news/02/social-card.png ---- +import ArticleHeader from '../../components/news/ArticleHeader'; +import { NextSeo } from 'next-seo'; + + + +# Bref 2.0 is released 🎉 + + The work on what would be Bref 2.0 started in October 2021, about 1.5 year ago. We went through many different strategies, experiments, rewrites, over **700 commits** to finally land with the stable release. @@ -334,44 +346,44 @@ I know this isn't _that_ exciting, but I had to mention it given the incredible A huge thanks to the [136 Bref contributors](https://github.com/brefphp/bref/graphs/contributors), to the community for supporting the project, and to the open-source sponsors: -
- - AWS + -
- - JetBrains + @@ -393,7 +405,7 @@ You can also join the community [in Slack](/docs/community.md), post details abo If you enjoy teasers, here is a preview of a redesign coming soon to Bref: -
+![](./02/logo.png) ## One more thing @@ -403,7 +415,7 @@ I launched the [**Bref Dashboard**](https://dashboard.bref.sh/) ✨ in January. And if you need support or help going serverless, check out the [Support Plans](/#ecosystem). -
- What is Bref and serverless? - Get started with Bref + diff --git a/website/src/pages/news/_meta.json b/website/src/pages/news/_meta.json new file mode 100644 index 000000000..b6445d87d --- /dev/null +++ b/website/src/pages/news/_meta.json @@ -0,0 +1,4 @@ +{ + "02-bref-2.0": "Bref 2.0 is released", + "01-bref-1.0": "Bref 1.0 is released" +} \ No newline at end of file