From d47755b4c686ab29ac9c977a50b1b18569e43b65 Mon Sep 17 00:00:00 2001 From: sriramveeraghanta Date: Tue, 11 Nov 2025 15:45:53 +0530 Subject: [PATCH] chore: remove unused files --- apps/web/next-env.d.ts | 5 -- apps/web/next.config.js | 125 ---------------------------------------- pnpm-workspace.yaml | 13 ++--- turbo.json | 4 +- 4 files changed, 8 insertions(+), 139 deletions(-) delete mode 100644 apps/web/next-env.d.ts delete mode 100644 apps/web/next.config.js diff --git a/apps/web/next-env.d.ts b/apps/web/next-env.d.ts deleted file mode 100644 index 40c3d68096..0000000000 --- a/apps/web/next-env.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -/// - -// NOTE: This file should not be edited -// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information. diff --git a/apps/web/next.config.js b/apps/web/next.config.js deleted file mode 100644 index c20d64ed5e..0000000000 --- a/apps/web/next.config.js +++ /dev/null @@ -1,125 +0,0 @@ -/* eslint-disable @typescript-eslint/no-var-requires */ -/** @type {import("next").NextConfig} */ -// eslint-disable-next-line @typescript-eslint/no-require-imports -require("dotenv").config({ path: ".env" }); - -const nextConfig = { - trailingSlash: true, - reactStrictMode: false, - swcMinify: true, - output: "standalone", - async headers() { - return [ - { - source: "/(.*)?", - headers: [{ key: "X-Frame-Options", value: "DENY" }], - }, - ]; - }, - images: { - unoptimized: true, - }, - experimental: { - optimizePackageImports: [ - "lucide-react", - "date-fns", - "@headlessui/react", - "react-color", - "react-day-picker", - "react-dropzone", - "react-hook-form", - "lodash-es", - "clsx", - "tailwind-merge", - "@plane/constants", - "@plane/editor", - "@plane/hooks", - "@plane/i18n", - "@plane/logger", - "@plane/propel", - "@plane/services", - "@plane/shared-state", - "@plane/types", - "@plane/ui", - "@plane/utils", - ], - }, - async redirects() { - return [ - { - source: "/:workspaceSlug/projects/:projectId/settings/:path*", - destination: "/:workspaceSlug/settings/projects/:projectId/:path*", - permanent: true, - }, - { - source: "/:workspaceSlug/analytics", - destination: "/:workspaceSlug/analytics/overview", - permanent: true, - }, - { - source: "/:workspaceSlug/settings/api-tokens", - destination: "/:workspaceSlug/settings/account/api-tokens", - permanent: true, - }, - { - source: "/:workspaceSlug/projects/:projectId/inbox", - destination: "/:workspaceSlug/projects/:projectId/intake", - permanent: true, - }, - { - source: "/accounts/sign-up", - destination: "/sign-up", - permanent: true, - }, - { - source: "/sign-in", - destination: "/", - permanent: true, - }, - { - source: "/signin", - destination: "/", - permanent: true, - }, - { - source: "/register", - destination: "/sign-up", - permanent: true, - }, - { - source: "/login", - destination: "/", - permanent: true, - }, - ]; - }, - async rewrites() { - const posthogHost = process.env.NEXT_PUBLIC_POSTHOG_HOST || "https://app.posthog.com"; - const rewrites = [ - { - source: "/ingest/static/:path*", - destination: `${posthogHost}/static/:path*`, - }, - { - source: "/ingest/:path*", - destination: `${posthogHost}/:path*`, - }, - ]; - if (process.env.NEXT_PUBLIC_ADMIN_BASE_URL || process.env.NEXT_PUBLIC_ADMIN_BASE_PATH) { - const ADMIN_BASE_URL = process.env.NEXT_PUBLIC_ADMIN_BASE_URL || ""; - const ADMIN_BASE_PATH = process.env.NEXT_PUBLIC_ADMIN_BASE_PATH || ""; - const GOD_MODE_BASE_URL = ADMIN_BASE_URL + ADMIN_BASE_PATH; - rewrites.push({ - source: "/god-mode", - destination: `${GOD_MODE_BASE_URL}/`, - }); - rewrites.push({ - source: "/god-mode/:path*", - destination: `${GOD_MODE_BASE_URL}/:path*`, - }); - } - return rewrites; - }, -}; - -module.exports = nextConfig; diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index e797315ac9..b1dc4a7391 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,8 +1,8 @@ packages: - - apps/* - - packages/* - - "!apps/api" - - "!apps/proxy" +- apps/* +- packages/* +- "!apps/api" +- "!apps/proxy" catalog: "@atlaskit/pragmatic-drag-and-drop-auto-scroll": 1.4.0 @@ -18,7 +18,6 @@ catalog: lodash-es: 4.17.21 "@types/lodash-es": 4.17.12 lucide-react: 0.469.0 - next: 14.2.32 sharp: 0.33.5 swr: 2.2.4 react: 18.3.1 @@ -34,5 +33,5 @@ catalog: "@tiptap/html": ^2.22.3 onlyBuiltDependencies: - - turbo - - sharp +- turbo +- sharp diff --git a/turbo.json b/turbo.json index 82f006f744..f6bf411072 100644 --- a/turbo.json +++ b/turbo.json @@ -24,7 +24,7 @@ "tasks": { "build": { "dependsOn": ["^build"], - "outputs": [".next/**", "dist/**", "build/**"] + "outputs": ["dist/**", "build/**"] }, "build-storybook": { "dependsOn": ["^build"], @@ -41,7 +41,7 @@ }, "check:lint": { "cache": false, - "inputs": ["**/*", "!**/.next/**", "!**/dist/**"] + "inputs": ["**/*", "!**/build/**", "!**/dist/**"] }, "check:format": { "cache": false