Skip to content

Commit

Permalink
ssue #PS-2274 : Using deployed tekdi generic editor in admin app
Browse files Browse the repository at this point in the history
  • Loading branch information
rajnishdargan committed Dec 5, 2024
1 parent 26d3713 commit 8d08808
Show file tree
Hide file tree
Showing 7 changed files with 1,686 additions and 27 deletions.
14 changes: 2 additions & 12 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ const remotes = (isServer) => {
};
};

const PORTAL_BASE_URL = "https://staging.sunbirded.org";
const PORTAL_BASE_URL = "https://sunbird-editor.tekdinext.com";

const routes = {
API: {
GENERAL: {
CONTENT_PREVIEW: "/content/preview/:path*",
CONTENT_PLUGINS: "/content-plugins/:path*",
GENERIC_EDITOR: "/generic-editor/:path*",
CONTENT_EDITOR: "/editor/content/:path*",
ASSET_IMAGE: "/assets/images/:path*",
},
},
};
Expand Down Expand Up @@ -107,15 +105,7 @@ const nextConfig = {
},
{
source: routes.API.GENERAL.GENERIC_EDITOR,
destination: `${PORTAL_BASE_URL}${routes.API.GENERAL.GENERIC_EDITOR}`, // Proxy to portal
},
{
source: routes.API.GENERAL.CONTENT_EDITOR,
destination: `${PORTAL_BASE_URL}${routes.API.GENERAL.CONTENT_EDITOR}`, // Proxy to portal
},
{
source: routes.API.GENERAL.ASSET_IMAGE,
destination: `${PORTAL_BASE_URL}${routes.API.GENERAL.ASSET_IMAGE}`, // Proxy to portal
destination: `${PORTAL_BASE_URL}/:path*`, // Proxy to generic editor portal
},
{
source: "/app/telemetry", // Match telemetry route
Expand Down
Loading

0 comments on commit 8d08808

Please sign in to comment.