aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDhravya Shah <[email protected]>2024-07-28 09:45:15 -0700
committerDhravya Shah <[email protected]>2024-07-28 09:45:15 -0700
commit78e35e395b2e173f6ffe9b1c5e304ea211d047be (patch)
treeaa09685fd0ff2d6e6aefc1c329b4cf29550caa35 /apps
parentMerge pull request #174 from supermemoryai/Welding-Torch-patch-1 (diff)
downloadsupermemory-78e35e395b2e173f6ffe9b1c5e304ea211d047be.tar.xz
supermemory-78e35e395b2e173f6ffe9b1c5e304ea211d047be.zip
lockfile
Diffstat (limited to 'apps')
-rw-r--r--apps/web/app/(landing)/Hero.tsx14
-rw-r--r--apps/web/app/api/store/route.ts8
-rw-r--r--apps/web/next.config.mjs54
3 files changed, 33 insertions, 43 deletions
diff --git a/apps/web/app/(landing)/Hero.tsx b/apps/web/app/(landing)/Hero.tsx
index 1cdfced8..6a5a260d 100644
--- a/apps/web/app/(landing)/Hero.tsx
+++ b/apps/web/app/(landing)/Hero.tsx
@@ -77,22 +77,20 @@ function Hero() {
<AnimatedLogoCloud />
<div className="relative z-50">
- <motion.iframe
+ <motion.img
{...{
...slap,
transition: { ...slap.transition, delay: 0.35 },
}}
+ src="/images/landing-hero.jpeg"
+ alt="Landing page background"
+ width={1512}
+ height={1405}
draggable="false"
- className="z-40 relative md:mt-[-40px] hidden sm:block h-full max-w-[70vw] mx-auto md:w-full select-none px-5 !rounded-2xl"
+ className="z-40 md:mt-[-40px] hidden sm:block h-full max-w-[70vw] mx-auto md:w-full select-none px-5 !rounded-2xl"
style={{
borderRadius: "20px",
- width: "100%",
- height: "100%",
}}
- src="https://customer-5xczlbkyq4f9ejha.cloudflarestream.com/111c4828c3587348bc703e67bfca9682/iframe?preload=true&poster=https%3A%2F%2Fcustomer-5xczlbkyq4f9ejha.cloudflarestream.com%2F111c4828c3587348bc703e67bfca9682%2Fthumbnails%2Fthumbnail.jpg%3Ftime%3D%26height%3D600"
- loading="lazy"
- allow="accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;"
- allowFullScreen={true}
/>
<div
className="absolute -z-10 left-0 top-[10%] h-32 w-[90%] overflow-x-hidden bg-[rgb(54,157,253)] bg-opacity-100 blur-[337.4px]"
diff --git a/apps/web/app/api/store/route.ts b/apps/web/app/api/store/route.ts
index 13cef19e..e0ff82cd 100644
--- a/apps/web/app/api/store/route.ts
+++ b/apps/web/app/api/store/route.ts
@@ -37,14 +37,6 @@ const createMemoryFromAPI = async (input: {
),
);
- if (numberOfItemsSavedInLast2Hours[0]!.count >= 20) {
- return {
- success: false,
- data: 0,
- error: `You have exceeded the limit`,
- };
- }
-
const vectorSaveResponse = await fetch(
`${process.env.BACKEND_BASE_URL}/api/add`,
{
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs
index c0001fa5..3a30ade0 100644
--- a/apps/web/next.config.mjs
+++ b/apps/web/next.config.mjs
@@ -19,42 +19,42 @@ if (process.env.NODE_ENV === "development") {
})(baseNextConfig);
}
-export default selectedCofig;
+// export default selectedCofig;
//! Disabled sentry for now because of unreasonably large bundle size
-// export default withSentryConfig(selectedCofig, {
-// // For all available options, see:
-// // https://github.com/getsentry/sentry-webpack-plugin#options
+export default withSentryConfig(selectedCofig, {
+ // For all available options, see:
+ // https://github.com/getsentry/sentry-webpack-plugin#options
-// org: "none-h00",
-// project: "javascript-nextjs",
-// // Only print logs for uploading source maps in CI
-// silent: !process.env.CI,
+ org: "none-h00",
+ project: "javascript-nextjs",
+ // Only print logs for uploading source maps in CI
+ silent: !process.env.CI,
-// // For all available options, see:
-// // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
+ // For all available options, see:
+ // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
-// // Upload a larger set of source maps for prettier stack traces (increases build time)
-// widenClientFileUpload: true,
+ // Upload a larger set of source maps for prettier stack traces (increases build time)
+ widenClientFileUpload: true,
-// // Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
-// // This can increase your server load as well as your hosting bill.
-// // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
-// // side errors will fail.
-// tunnelRoute: "/monitoring",
+ // Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
+ // This can increase your server load as well as your hosting bill.
+ // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
+ // side errors will fail.
+ tunnelRoute: "/monitoring",
-// // Hides source maps from generated client bundles
-// hideSourceMaps: true,
+ // Hides source maps from generated client bundles
+ hideSourceMaps: true,
-// // Automatically tree-shake Sentry logger statements to reduce bundle size
-// disableLogger: true,
+ // Automatically tree-shake Sentry logger statements to reduce bundle size
+ disableLogger: true,
-// // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
-// // See the following for more information:
-// // https://docs.sentry.io/product/crons/
-// // https://vercel.com/docs/cron-jobs
-// automaticVercelMonitors: true,
-// });
+ // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
+ // See the following for more information:
+ // https://docs.sentry.io/product/crons/
+ // https://vercel.com/docs/cron-jobs
+ automaticVercelMonitors: true,
+});
// we only need to use the utility during development so we can check NODE_ENV
// (note: this check is recommended but completely optional)