mirror of
https://github.com/makeplane/plane.git
synced 2026-07-14 06:25:58 +02:00
* refactor: iframe service * refactor: name iframely * refactor: use extension storage * refactor:error handler * refactor : error handling * fix: drag handler inside error * feat: refactor space embed handler * refactor: handle convert UI * refactor : iframely service , controller * refactor: fix modal opening logic * feat: loading in twit embed. * fix: twit frame * feat :tweet fix in space. * refactor: change name casing * feat: add icon link * feat: added animation * fix : iframe styles * refactor : update link-container * refactor : fix build * feat: handle link url mark * fix: iframely service created in web * fix: group issue * fix: use live URL instead * fix : close embed modal * feat: handle arrow keys * fix: handle error * fix : remove logs * feat: handle bookmark * feat: handle og image * chore:remove observer * feat: handle bookmark and embed * feat: handle custom render * chore: clean up * feat: handle conversion * fix : handle links properly * feat: handle figma embed * refactor : put iframely controller in ee * refactor: better icon * feat: feature flag external embed * feat: timeout * feat: refactor embed component * refactor: upgrade plan * feat :handle block menu * feat: handle comment * fix : reloads * refactor : remove border * fix : embed order * fix :Embed handler * feat: insert embed v1 * feat : web bookmark command * chore: fix text * feat: ui updates * feat: handle cursor focus * feat: update isopened in storage * feat: add platform name * fix:deny plane embed * feat: props update * feat: handle embed options properly * chore: minor changes * chore : add external embeds in the page form * chore : convert bookmark to rich card * feat : update thumnail not found * feat: add new loading animation * fix : handle paste embed * feat:block translation * feat: basic local setup * feat: embed translation for all languages * chore : update feature flag name * feat: handle feature flag in space * FIX: add build in i18n package * fix : update props for embed handler * chore : remove comments * chore : move hooks * FIX : package update * FIX: live * feat: handle unique ID * feat: handle thumbnails * chore : remove useless fetch * chore : update types * refactor : twitter theme * chore : remove slash command for rich card * chore: different text in readonly * refactor : change editor name * refactor: update modal style * refactor : make the html simple * refactor : external extension * refactor : rename extension * refactor: attribute names * refactor : add entity type * refactor: figma hook * refactor: remove translations * fix : creds * feat: handle iframely api auth * feat: handle space embed load * feat: handle paste link * feat: styles updates * chore : remove editable condition * remove link-container * feat : feature flag slash command * chore * fix * chore : refactor external embed * refactor : fix embed insert * chore : remove auth * chore : remove old code * fix : build * fix:auth * Fix: floating portal Fix * fix: refactor * fix : update types * fix: build * fix : update iframe response types * refactor: embed ui components * refactor : emebd components * refactor : add tailwind animations * refactor core * refactor ce * refactor : move icons * refactor lite editor * small refactor * refactor : update icons import * build fix * fix: cors * feat: update project structure * refactor : embed handler * refactor : embed hooks * refactor : packages * chore: embed setup in dev wiki * refactor: embed extension * refactor:fix types * refactor: external emebds * chore: clean imports * chore :remove readonly editor types * chore : remove logs * Revert changes to dev-wiki/ * refactor: remove upgrade plane component * feat: add unique id * refactor : update fetching logic with useSWR * Feat: Handle auth in iframley API * feat:update embed select style * refactor : remove useless component * refactor : widge embed * Remove changes to i18n locales path * refactor: utils * refactor : update emebd handler * wip -- * fix : build * refactor : block menu * refactor:remove unused code * refactor : update block menu * refactor: slash command feature flag * refactor: add badge in slash command * refactor: editor attribute * refactor : embed handler * fix : swr * fix : build * refactor: feature flag space * refactor : storage types * refactor: remove embeddable * refactor: space remove feature flag * refactor: update space feature flag * refactor: external embed * fix :rerender * build : fix hooks * fix: block menu refactor * refactor: hooks * refactor: move tldjs * refactor :extension * refactor: page render * refactor : update NodeViewProps types * refactor : embed handler space * refactor: update has_embed_failed * refactor: remove useless render code * refactor : twitter embed * fix : build * refactor : attribute with commands * refactor : external embed extension. * refactor: external embed storage. * fix : rich and embed types * fix : web embed * style : selection * refactor: space embed handler * fix : extension storage * refactor: embed types * refactor: imports * fix : page renderer * chore: add comment * chore: update comments * chore: install tldjs * refactor: update ui package * fix :dev-wiki pnpm changes * chore: minor improvements * refactor : update embed type * refactor : update component name * refactor :url modifier * refactor: remove external embed ce * feat: disabled external embed * refactor: add disabled props * refactor: remove get attribute method * refactor: package ui styles * feat: translations * refactor: theme type * feat: jwt auth * improve: add jwt auth for user * chore :comment translations * refactor: api params * refactor: update types * refactor: update props * refactor: constants * refactor: lite comments * refactor: add type imports * refactor:external embed node view * refactor: move tldjs to dev dep * refactor: add flagged check * refactor: update slice imports * refactor: update type changes * chore : remove comments * refactor : update nodeview types * chore :remove type export * chore: update icon * chore: update iframley types * fix: build errors --------- Co-authored-by: Palanikannan M <akashmalinimurugu@gmail.com> Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com> Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
137 lines
3.5 KiB
JavaScript
137 lines
3.5 KiB
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
/** @type {import("next").NextConfig} */
|
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
// require("@dotenvx/dotenvx").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",
|
|
"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,
|
|
},
|
|
{
|
|
source: "/:workspaceSlug/projects/:projectId/settings/:path*",
|
|
destination: "/:workspaceSlug/settings/projects/:projectId/:path*",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/:workspaceSlug/settings/api-tokens",
|
|
destination: "/:workspaceSlug/settings/account/api-tokens",
|
|
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;
|