update the adminpage ui

This commit is contained in:
2026-09-25 16:29:41 +05:30
parent 91e4db8217
commit b36a30385c
168 changed files with 10535 additions and 1008 deletions

View File

@@ -10,6 +10,27 @@ const nextConfig: NextConfig = {
// local `npm run build` keeps its warm cache.
turbopackFileSystemCacheForBuild: process.env.CI_BUILD !== "1",
},
// The platform console renamed Companies → Merchants and Stores → Shops.
// Temporary (307) so bookmarks keep working without browsers caching the
// move forever while the admin IA is still settling.
async redirects() {
return [
{
source: "/admin/companies/:id/stores/:shopId/:rest*",
destination: "/admin/merchants/:id/shops/:shopId/:rest*",
permanent: false,
},
{
source: "/admin/companies/:rest*",
destination: "/admin/merchants/:rest*",
permanent: false,
},
{source: "/admin/stores", destination: "/admin/merchants", permanent: false},
// The overview IS /admin; these are the names people guess for it.
{source: "/admin/overview", destination: "/admin", permanent: false},
{source: "/admin/dashboard", destination: "/admin", permanent: false},
];
},
allowedDevOrigins: ["192.168.0.117", "192.168.0.*", "192.168.1.*", "localhost", "127.0.0.1"],
images: {
remotePatterns: [