From f96f3da295acffc7768e00701c04acdf7842a470 Mon Sep 17 00:00:00 2001 From: dschlabach Date: Wed, 20 Nov 2024 10:39:44 -0500 Subject: [PATCH] add redirects and update links --- .vscode/settings.json | 9 +++++++++ apps/base-docs/docusaurus.config.js | 4 ++-- apps/base-docs/src/components/Hero/HeroButton/index.tsx | 2 +- apps/web/app/(base-org)/(root)/page.tsx | 2 +- apps/web/app/(base-org)/getstarted/page.tsx | 2 +- apps/web/next.config.js | 9 +++++++-- .../base-org/root/BuildExploreSection/index.tsx | 2 +- .../components/base-org/shared/TopNavigation/index.tsx | 6 +++--- 8 files changed, 25 insertions(+), 11 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index ea70eb1c9d..9ab2e3f516 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,6 +15,15 @@ "[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, + "[typescriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[javascriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, // ESLint "editor.codeActionsOnSave": ["source.fixAll.eslint"], diff --git a/apps/base-docs/docusaurus.config.js b/apps/base-docs/docusaurus.config.js index ef10f95fdf..2588b738f6 100644 --- a/apps/base-docs/docusaurus.config.js +++ b/apps/base-docs/docusaurus.config.js @@ -130,11 +130,11 @@ const config = { eventContext: 'navbar', }, { - to: 'https://base.org/getstarted', + to: 'https://base.org/resourcekit', navposition: 'bottomLeft', label: 'Get Started', type: 'custom-navbarLink', - eventLabel: 'getstarted', + eventLabel: 'resourcekit', eventContext: 'navbar', }, { diff --git a/apps/base-docs/src/components/Hero/HeroButton/index.tsx b/apps/base-docs/src/components/Hero/HeroButton/index.tsx index 41f49bb192..1bc4bb1b0f 100644 --- a/apps/base-docs/src/components/Hero/HeroButton/index.tsx +++ b/apps/base-docs/src/components/Hero/HeroButton/index.tsx @@ -12,7 +12,7 @@ export default function HeroButton() { return ( Base is for everyone.
- + diff --git a/apps/web/app/(base-org)/getstarted/page.tsx b/apps/web/app/(base-org)/getstarted/page.tsx index 132ecbaffb..12185f4975 100644 --- a/apps/web/app/(base-org)/getstarted/page.tsx +++ b/apps/web/app/(base-org)/getstarted/page.tsx @@ -14,7 +14,7 @@ export const metadata: Metadata = { title: `Base | Get Started`, openGraph: { title: `Base | Get Started`, - url: '/getstarted', + url: '/resourcekit', images: ['https://base.org/images/getstarted-open-graph.png'], }, }; diff --git a/apps/web/next.config.js b/apps/web/next.config.js index e2c5b7c675..ec44b2fa70 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -119,7 +119,7 @@ const contentSecurityPolicy = { 'https://unpkg.com/@lottiefiles/dotlottie-web@0.31.1/dist/dotlottie-player.wasm', // lottie player `https://${process.env.NEXT_PUBLIC_PINATA_GATEWAY_URL}`, ], - 'frame-src': ["https://p.datadoghq.com"], + 'frame-src': ['https://p.datadoghq.com'], 'frame-ancestors': ["'self'", baseXYZDomains], 'form-action': ["'self'", baseXYZDomains], 'img-src': [ @@ -259,7 +259,12 @@ module.exports = extendBaseConfig( }, { source: '/onchainsummer', - destination: '/getstarted', + destination: '/resourcekit', + permanent: true, + }, + { + source: '/getstarted', + destination: '/resourcekit', permanent: true, }, { diff --git a/apps/web/src/components/base-org/root/BuildExploreSection/index.tsx b/apps/web/src/components/base-org/root/BuildExploreSection/index.tsx index 55b9370fd4..230b7ebeda 100644 --- a/apps/web/src/components/base-org/root/BuildExploreSection/index.tsx +++ b/apps/web/src/components/base-org/root/BuildExploreSection/index.tsx @@ -33,7 +33,7 @@ export default async function BuildExploreSection() {
- +