Skip to content

Commit e6e9944

Browse files
authored
move landing page to framer (#5146)
1 parent cf61115 commit e6e9944

File tree

17 files changed

+25
-1327
lines changed

17 files changed

+25
-1327
lines changed

apps/dashboard/framer-rewrites.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// add framer paths here
2+
module.exports = [
3+
"/",
4+
"/connect/sign-in",
5+
"/contracts/modular-contracts",
6+
"/unlimited-wallets",
7+
];

apps/dashboard/next-sitemap.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @ts-check
2+
23
/**
34
*
45
*/
@@ -77,8 +78,16 @@ module.exports = {
7778
};
7879
},
7980
additionalPaths: async (config) => {
81+
// eslint-disable-next-line @typescript-eslint/no-var-requires
82+
const FRAMER_PATHS = require("./framer-rewrites");
8083
const allChains = await fetchChainsFromApi();
8184
return [
85+
...FRAMER_PATHS.map((path) => ({
86+
loc: path,
87+
changefreq: config.changefreq,
88+
priority: config.priority,
89+
lastmod: config.autoLastmod ? new Date().toISOString() : undefined,
90+
})),
8291
...allChains.map((chain) => {
8392
return {
8493
loc: `/${chain.slug}`,

apps/dashboard/next.config.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const ContentSecurityPolicy = `
66
media-src * data: blob:;
77
object-src 'none';
88
style-src 'self' 'unsafe-inline' vercel.live;
9-
font-src 'self' vercel.live assets.vercel.com framerusercontent.com;
9+
font-src 'self' vercel.live assets.vercel.com framerusercontent.com fonts.gstatic.com;
1010
frame-src * data:;
1111
script-src 'self' 'unsafe-eval' 'unsafe-inline' 'wasm-unsafe-eval' 'inline-speculation-rules' *.thirdweb.com *.thirdweb-dev.com vercel.live js.stripe.com framerusercontent.com events.framer.com challenges.cloudflare.com;
1212
connect-src * data: blob:;
@@ -38,13 +38,7 @@ const securityHeaders = [
3838
];
3939

4040
const redirects = require("./redirects");
41-
42-
// add framer paths here
43-
const FRAMER_PATHS = [
44-
"/connect/sign-in",
45-
"/contracts/modular-contracts",
46-
"/unlimited-wallets",
47-
];
41+
const FRAMER_PATHS = require("./framer-rewrites");
4842

4943
/**
5044
* @returns {import('next').RemotePattern[]}
@@ -135,6 +129,11 @@ const moduleExports = {
135129
source: "/thirdweb.eth/:path*",
136130
destination: "/deployer.thirdweb.eth/:path*",
137131
},
132+
// re-write /home to / (this is so that logged in users will be able to go to /home and NOT be redirected to the logged in app)
133+
{
134+
source: "/home",
135+
destination: "/",
136+
},
138137
...FRAMER_PATHS.map((path) => ({
139138
source: path,
140139
destination: `https://landing.thirdweb.com${path}`,
@@ -191,7 +190,7 @@ module.exports = withBundleAnalyzer(
191190
// An auth token is required for uploading source maps.
192191
authToken: process.env.SENTRY_AUTH_TOKEN,
193192
// Suppresses source map uploading logs during build
194-
silent: false,
193+
silent: true,
195194
// For all available options, see:
196195
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
197196

apps/dashboard/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
"react-dropzone": "^14.2.9",
8888
"react-error-boundary": "^4.1.2",
8989
"react-hook-form": "7.52.0",
90-
"react-intersection-observer": "^9.10.3",
9190
"react-markdown": "^9.0.1",
9291
"react-responsive-carousel": "^3.2.23",
9392
"react-table": "^7.8.0",

apps/dashboard/src/components/homepage/CodeBlock/index.tsx

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

0 commit comments

Comments
 (0)