diff --git a/gatsby-node.ts b/gatsby-node.ts index 1df1b425d5..0d8753b52e 100644 --- a/gatsby-node.ts +++ b/gatsby-node.ts @@ -144,13 +144,7 @@ export const createPages: GatsbyNode["createPages"] = async ({ actions, graphql, }) => { - const { createPage, createRedirect } = actions - - createRedirect({ - fromPath: `/conf/attendee/*`, - toPath: `https://graphql-conf-attendee-nextjs.vercel.app/*`, - statusCode: 200, - }) + const { createPage } = actions try { const schedAccessToken = process.env.SCHED_ACCESS_TOKEN @@ -294,32 +288,6 @@ export const createPages: GatsbyNode["createPages"] = async ({ console.log("CATCH ME:", error) } - createRedirect({ - fromPath: "/conf/program", - toPath: "/conf/schedule", - }) - - createRedirect({ - fromPath: "/conf/schedule/*", - toPath: "/conf/sessions/*", - }) - - // redirect swapi with 200 - createRedirect({ - fromPath: `/swapi-graphql/*`, - toPath: `https://graphql.github.io/swapi-graphql/*`, - statusCode: 200, - }) - - // legacy 301 redirects from previous iterations of the site - redirects.forEach(({ from, to }) => { - createRedirect({ - fromPath: from, - toPath: to, - statusCode: 301, - }) - }) - const result = await graphql(` query allMarkdownRemark { allMarkdownRemark { diff --git a/package.json b/package.json index 29a217ff6c..8f89e4e57b 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ }, "packageManager": "yarn@1.22.19", "dependencies": { - "react-medium-image-zoom": "5.1.8", "@graphql-tools/schema": "10.0.0", "@headlessui/react": "^1.7.17", "@heroicons/react": "^2.0.18", @@ -50,6 +49,7 @@ "react": "18.2.0", "react-dom": "18.2.0", "react-markdown": "^8.0.7", + "react-medium-image-zoom": "5.1.8", "react-tooltip": "^5.18.1", "rehype-raw": "^6.1.1", "string-similarity": "^4.0.4", @@ -66,9 +66,9 @@ "autoprefixer": "10.4.14", "eslint": "8.42.0", "eslint-plugin-tailwindcss": "3.12.0", + "gatsby-plugin-canonical-urls": "5.12.0", "gatsby-plugin-postcss": "6.10.0", "gatsby-plugin-svgr": "^3.0.0-beta.0", - "gatsby-plugin-canonical-urls": "5.12.0", "postcss": "8.4.23", "prettier": "2.8.8", "tailwindcss": "3.3.2", diff --git a/redirects.json b/redirects.json deleted file mode 100644 index 64c293d581..0000000000 --- a/redirects.json +++ /dev/null @@ -1,66 +0,0 @@ -[ - { - "from": "/docs/api-reference-errors", - "to": "/graphql-js/error/" - }, - { - "from": "/docs/api-reference-execution", - "to": "/graphql-js/execution/" - }, - { - "from": "/docs/api-reference-express-graphql", - "to": "/graphql-js/express-graphql/" - }, - { - "from": "/docs/api-reference-graphql", - "to": "/graphql-js/graphql/" - }, - { - "from": "/docs/api-reference-language", - "to": "/graphql-js/language/" - }, - { - "from": "/docs/api-reference-type-system", - "to": "/graphql-js/type/" - }, - { - "from": "/docs/api-reference-type-utilities", - "to": "/graphql-js/utilities/" - }, - { - "from": "/docs/api-reference-type-validation", - "to": "/graphql-js/validation/" - }, - { - "from": "/docs/getting-started", - "to": "/learn/" - }, - { - "from": "/docs/intro", - "to": "/learn/" - }, - { - "from": "/docs/introspection", - "to": "/learn/introspection/" - }, - { - "from": "/docs/queries", - "to": "/learn/queries/" - }, - { - "from": "/docs/typesystem", - "to": "/learn/schema/" - }, - { - "from": "/docs/validation", - "to": "/learn/validation/" - }, - { - "from": "/docs/videos", - "to": "/community/#videos/" - }, - { - "from": "/help", - "to": "/community/" - } -] diff --git a/src/templates/event.tsx b/src/templates/event.tsx index 91c468bf89..f7434db013 100644 --- a/src/templates/event.tsx +++ b/src/templates/event.tsx @@ -142,13 +142,13 @@ export const EventComponent: FC<{
{event.files?.map(({ path }) => ( - <> +
View Full PDF{" "}