Skip to content

Commit 9d91851

Browse files
YassinEldeebDimitri POSTOLOV
and
Dimitri POSTOLOV
authored
fix: og image for attendees (graphql#1547)
Co-authored-by: Dimitri POSTOLOV <[email protected]>
1 parent 1e2c154 commit 9d91851

File tree

3 files changed

+8
-116
lines changed

3 files changed

+8
-116
lines changed

gatsby-node.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const onCreateNode: GatsbyNode["onCreateNode"] = async ({
4040
createNodeId,
4141
createContentDigest,
4242
}) => {
43-
const { createNode, createParentChildLink } = actions
43+
const { createNode, createParentChildLink, createRedirect } = actions
4444

4545
// Derive content nodes from remark nodes
4646
if (
@@ -148,6 +148,12 @@ export const createPages: GatsbyNode["createPages"] = async ({
148148
}) => {
149149
const { createPage, createRedirect } = actions
150150

151+
createRedirect({
152+
fromPath: `/conf/attendee/*`,
153+
toPath: `https://graphql-conf-attendee-nextjs-intermediate-app.vercel.app/*`,
154+
statusCode: 200,
155+
})
156+
151157
try {
152158
const schedAccessToken = process.env.SCHED_ACCESS_TOKEN
153159

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"repository": "graphql/graphql.github.io",
2+
"repository": "graphql/graphql.github.io website",
33
"private": true,
44
"version": "0.0.0",
55
"scripts": {

src/pages/conf/attendee/[hash].tsx

Lines changed: 0 additions & 114 deletions
This file was deleted.

0 commit comments

Comments
 (0)