Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify language by post #17

Merged
merged 1 commit into from
Jan 19, 2021
Merged

Specify language by post #17

merged 1 commit into from
Jan 19, 2021

Conversation

armandabric
Copy link
Contributor

@armandabric armandabric commented Jan 19, 2021

Part of #10

@armandabric armandabric self-assigned this Jan 19, 2021
@vercel
Copy link

vercel bot commented Jan 19, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/gogaille/blog/nwbqc5f8d
✅ Preview: https://blog-git-locale-by-post.gogaille.vercel.app

@@ -30,7 +30,9 @@ export function getPostBySlug(slug: string): Post {
content: contentInMarkdown,
};

return post;
guardPostPayload(postPayload);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We validate the Post payload to avoid lot's of complexity in the components

@shouze shouze merged commit dc61bc6 into main Jan 19, 2021
@armandabric armandabric deleted the locale-by-post branch January 19, 2021 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants