aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/next.config.mjs
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2025-08-20 16:23:47 +0300
committerMohamedBassem <me@mbassem.com>2025-08-20 16:23:47 +0300
commitbe420c9aebb0f2d343a0c94327fddc089f56d402 (patch)
treebab9cfff8f6344523823b5c1501af66e58b1378d /apps/web/next.config.mjs
parentf7b145c6551e76a6d4b9fc3a4983a28ef91a6d14 (diff)
downloadkarakeep-be420c9aebb0f2d343a0c94327fddc089f56d402.tar.zst
deps: Upgrade nextjs to 15.5
Diffstat (limited to 'apps/web/next.config.mjs')
-rw-r--r--apps/web/next.config.mjs30
1 files changed, 10 insertions, 20 deletions
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs
index df864f22..adbb209d 100644
--- a/apps/web/next.config.mjs
+++ b/apps/web/next.config.mjs
@@ -1,24 +1,6 @@
-import pwa from "next-pwa";
-
-const withPWA = pwa({
- dest: "public",
- disable: process.env.NODE_ENV != "production",
-});
-
/** @type {import('next').NextConfig} */
-const nextConfig = withPWA({
+const nextConfig = {
output: "standalone",
- webpack: (config) => {
- config.module.rules.push({
- test: /\.svg$/,
- use: ["@svgr/webpack"],
- });
- return config;
- },
- devIndicators: {
- buildActivity: true,
- buildActivityPosition: "bottom-left",
- },
async headers() {
return [
{
@@ -49,12 +31,20 @@ const nextConfig = withPWA({
},
];
},
+ turbopack: {
+ rules: {
+ "*.svg": {
+ loaders: ["@svgr/webpack"],
+ as: "*.js",
+ },
+ },
+ },
// transpilePackages: ["@karakeep/shared", "@karakeep/db", "@karakeep/trpc"],
/** We already do linting and typechecking as separate tasks in CI */
eslint: { ignoreDuringBuilds: true },
typescript: { ignoreBuildErrors: true },
-});
+};
export default nextConfig;