chore: remove unused files

This commit is contained in:
sriramveeraghanta 2025-11-11 15:45:53 +05:30
parent b51da2f997
commit d47755b4c6
4 changed files with 8 additions and 139 deletions

View file

@ -1,5 +0,0 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.

View file

@ -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;

View file

@ -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

View file

@ -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