Skip to content

Commit

Permalink
chore: trigger ci
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-the-nardo committed Dec 4, 2024
1 parent c5cd795 commit a016378
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion content/hello-world.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ published: true
<Callout type="warning">Hello I am a callout</Callout>

# Hello World

Welcome to my blog `inline code`

### Header 3
2 changes: 1 addition & 1 deletion content/prop-drilling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ published: true
In the shadowy depths of a complex React application, a horror story unfolds. Components, innocent and unsuspecting, find themselves ensnared in a terrifying ordeal known as prop drilling. This tale of suspense and survival will take you through the darkest corridors of React development.

## The Curse of Prop Drilling

Our story begins in a seemingly ordinary app, where a deep nesting of components lives in harmony. But beneath the surface, a curse lurks: the curse of prop drilling. Props, those precious pieces of data, must traverse through an endless labyrinth of components, each more terrifying than the last.

```jsx
Expand Down
3 changes: 2 additions & 1 deletion github-actions-scripts/publish-post-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async function publishEvent(slug, frontmatter, eventType) {
// const dataBuffer = Buffer.from(JSON.stringify({ message}));

try {
pubSubClient.topic(topicName).publishMessage({data: Buffer.from(JSON.stringify(message.data)) , attributes: message.attributes})
await pubSubClient.topic(topicName).publishMessage({data: Buffer.from(JSON.stringify(message.data)) , attributes: message.attributes})
console.log(`Message published for slug: ${slug}`);
} catch (error) {
console.log(`Failed to publish message for slug: ${slug}`, error);
Expand All @@ -83,6 +83,7 @@ async function publishEvent(slug, frontmatter, eventType) {

console.log(`Detected change in ${file}: Event Type - ${eventType}`);
await publishEvent(slug, frontmatter, eventType);
console.log("published event for slug", slug)
}
console.log("Published.")
})();

0 comments on commit a016378

Please sign in to comment.