-
Notifications
You must be signed in to change notification settings - Fork 103
Added SSR and OG image tags to visualised machines #198
Added SSR and OG image tags to visualised machines #198
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/statelyai/xstate-viz/ABE1jcZdhWNCotSBKyEKtKtkwQAH |
…-ssr-and-og-image-tags-to-visualised-machines
Co-authored-by: Mateusz Burzyński <[email protected]>
src/AppHead.tsx
Outdated
* whereas titles in the <title> attribute | ||
* should be SEO-friendly | ||
* | ||
* ogTitle: My Great Machine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.changeset/tiny-chicken-worry.md
Outdated
"xstate-viz-app": patch | ||
--- | ||
|
||
Added SSR and OG image tags to visualised machines, and put visualised machines on a new, prettier URL - `/viz/:id` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All 3 things are completely separate and unrelated from the user's PoV. Don't be afraid of creating more than a single changeset per PR :)
I'm not sure if SSR is that interesting to our users - but the other ones definitely are! A sample OG image could also be attached to a changeset mentioning this improvement.
if (!result.data?.getSourceFile) { | ||
return { | ||
notFound: true, | ||
props: {} as any, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It typechecks just fine without it:
props: {} as any, |
The notFound
is already included in the union here:
https://github.com/vercel/next.js/blob/53f0973abaa5db4961dc03b226698d3c4ddbcf2b/packages/next/types/index.d.ts#L162-L165
…-ssr-and-og-image-tags-to-visualised-machines
Going to delete the changesets and add them to a later PR when we turn the feature flag on |
No description provided.