update the adminpage ui
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user