chore: remove unused files
This commit is contained in:
parent
b51da2f997
commit
d47755b4c6
4 changed files with 8 additions and 139 deletions
5
apps/web/next-env.d.ts
vendored
5
apps/web/next-env.d.ts
vendored
|
|
@ -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.
|
|
||||||
|
|
@ -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;
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
packages:
|
packages:
|
||||||
- apps/*
|
- apps/*
|
||||||
- packages/*
|
- packages/*
|
||||||
- "!apps/api"
|
- "!apps/api"
|
||||||
- "!apps/proxy"
|
- "!apps/proxy"
|
||||||
|
|
||||||
catalog:
|
catalog:
|
||||||
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": 1.4.0
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": 1.4.0
|
||||||
|
|
@ -18,7 +18,6 @@ catalog:
|
||||||
lodash-es: 4.17.21
|
lodash-es: 4.17.21
|
||||||
"@types/lodash-es": 4.17.12
|
"@types/lodash-es": 4.17.12
|
||||||
lucide-react: 0.469.0
|
lucide-react: 0.469.0
|
||||||
next: 14.2.32
|
|
||||||
sharp: 0.33.5
|
sharp: 0.33.5
|
||||||
swr: 2.2.4
|
swr: 2.2.4
|
||||||
react: 18.3.1
|
react: 18.3.1
|
||||||
|
|
@ -34,5 +33,5 @@ catalog:
|
||||||
"@tiptap/html": ^2.22.3
|
"@tiptap/html": ^2.22.3
|
||||||
|
|
||||||
onlyBuiltDependencies:
|
onlyBuiltDependencies:
|
||||||
- turbo
|
- turbo
|
||||||
- sharp
|
- sharp
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
"tasks": {
|
"tasks": {
|
||||||
"build": {
|
"build": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"outputs": [".next/**", "dist/**", "build/**"]
|
"outputs": ["dist/**", "build/**"]
|
||||||
},
|
},
|
||||||
"build-storybook": {
|
"build-storybook": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
},
|
},
|
||||||
"check:lint": {
|
"check:lint": {
|
||||||
"cache": false,
|
"cache": false,
|
||||||
"inputs": ["**/*", "!**/.next/**", "!**/dist/**"]
|
"inputs": ["**/*", "!**/build/**", "!**/dist/**"]
|
||||||
},
|
},
|
||||||
"check:format": {
|
"check:format": {
|
||||||
"cache": false
|
"cache": false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue