impress-2020/api
Matchu 8f83ac412c Add sharing meta tags to outfit pages
Meta tags are a bit tricky in apps built with `create-react-app`! While some bots like Google are able to render the full page when crawling, not all bots are. Most will just see the empty-ish index.html that would normally load up the application.

But we want outfit sharing to work! And be cool! And use our new outfit thumbnails!

In this change, we add a new server-side rendering API route to handle `/outfits/:id`.

It's very weak server-side rendering: it just loads index.html, and makes a few small tweaks inside the `<head>` tag. But it should be enough for sharing to work in clients that support the basics of Open Graph, which I think most major providers respect! (I know Twitter has their own tags, but it also respects the basics of OG, so let's see whether there's anything we end up _wanting_ to tweak or not!)
2021-05-14 19:51:48 -07:00
..
allWakaValues.js Fix eslint for /api 2021-05-13 01:13:21 -07:00
graphql.js Fix eslint for /api 2021-05-13 01:13:21 -07:00
outfitImage.js Generate outfit images by ID alone 2021-05-13 18:03:56 -07:00
outfitPageSSR.js Add sharing meta tags to outfit pages 2021-05-14 19:51:48 -07:00
sendFeedback.js Fix eslint for /api 2021-05-13 01:13:21 -07:00
uploadLayerImage.js Fix eslint for /api 2021-05-13 01:13:21 -07:00
validPetPoses.js Fix eslint for /api 2021-05-13 01:13:21 -07:00