aboutsummaryrefslogtreecommitdiff
path: root/apps/web
diff options
context:
space:
mode:
authorVinit Shah <[email protected]>2024-08-13 19:56:29 -0700
committerVinit Shah <[email protected]>2024-08-13 19:56:29 -0700
commit27a7de9f8937fd84c33183927c66cbd4ecada2ec (patch)
treecffd3b1598ac15a016e7a8c8f73466770aaf3fa2 /apps/web
parentchore: fix lockfile (diff)
parentFix Tailwind configuration and use Turbopack (diff)
downloadsupermemory-27a7de9f8937fd84c33183927c66cbd4ecada2ec.tar.xz
supermemory-27a7de9f8937fd84c33183927c66cbd4ecada2ec.zip
Merge branch 'leerob-perf-improvements'
Diffstat (limited to 'apps/web')
-rw-r--r--apps/web/.gitignore11
-rw-r--r--apps/web/next-env.d.ts2
-rw-r--r--apps/web/next.config.mjs13
-rw-r--r--apps/web/package.json9
4 files changed, 8 insertions, 27 deletions
diff --git a/apps/web/.gitignore b/apps/web/.gitignore
index 4d28f221..7d7c7a5f 100644
--- a/apps/web/.gitignore
+++ b/apps/web/.gitignore
@@ -1,14 +1,3 @@
# Sentry Config File
.env.sentry-build-plugin
-
-# next-pwa
-/public/sw.js
-/public/workbox-*.js
-/public/worker-*.js
-/public/fallback-*.js
-/public/precache.*.*.js.map
-/public/sw.js.map
-/public/workbox-*.js.map
-/public/worker-*.js.map
-/public/fallback-*.js \ No newline at end of file
diff --git a/apps/web/next-env.d.ts b/apps/web/next-env.d.ts
index 4f11a03d..40c3d680 100644
--- a/apps/web/next-env.d.ts
+++ b/apps/web/next-env.d.ts
@@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
-// see https://nextjs.org/docs/basic-features/typescript for more information.
+// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs
index ef442dab..463142fe 100644
--- a/apps/web/next.config.mjs
+++ b/apps/web/next.config.mjs
@@ -1,6 +1,6 @@
import MillionLint from "@million/lint";
import { setupDevPlatform } from "@cloudflare/next-on-pages/next-dev";
-import pwa from "next-pwa";
+
/** @type {import('next').NextConfig} */
const baseNextConfig = {
transpilePackages: ["@repo/ui"],
@@ -9,17 +9,10 @@ const baseNextConfig = {
TELEGRAM_BOT_TOKEN: process.env.TELEGRAM_BOT_TOKEN,
},
eslint: {
- ignoreDuringBuilds: true
+ ignoreDuringBuilds: true,
},
};
-const withPWA = pwa({
- dest: "public",
- disable: process.env.NODE_ENV === "development",
- register: true,
- skipWaiting: true,
-});
-
let selectedConfig = baseNextConfig;
if (process.env.NODE_ENV === "development") {
@@ -28,7 +21,7 @@ if (process.env.NODE_ENV === "development") {
})(baseNextConfig);
}
-export default withPWA(selectedConfig);
+export default selectedConfig;
// we only need to use the utility during development so we can check NODE_ENV
// (note: this check is recommended but completely optional)
diff --git a/apps/web/package.json b/apps/web/package.json
index 109d7907..0944450a 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"scripts": {
- "dev": "next dev",
+ "dev": "next dev --turbo",
"build": "next build",
"start": "next start",
"lint": "eslint . --max-warnings 0",
@@ -27,13 +27,12 @@
"drizzle-orm": "0.30.0",
"lowlight": "^3.1.0",
"million": "^3.1.6",
- "next": "^14.1.1",
- "next-pwa": "^5.6.0",
+ "next": "15.0.0-canary.112",
"novel": "^0.4.2",
"nuqs": "^1.17.4",
"posthog-js": "^1.154.5",
- "react": "^18.2.0",
- "react-dom": "^18.2.0",
+ "react": "19.0.0-rc-68dbd84b-20240812",
+ "react-dom": "19.0.0-rc-68dbd84b-20240812",
"react-resizable-panels": "^2.0.19",
"use-debounce": "^10.0.1"
},