This is an automated email from the ASF dual-hosted git repository. hsluoyz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/casbin-website-v3.git
commit c1918967bd0857537feb5beaf006f956af706a34 Author: Yang Luo <[email protected]> AuthorDate: Wed Oct 7 10:37:54 2026 +0800 feat: fix Prettier formatting of next.config.mjs --- next.config.mjs | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 7f924f5..f48bd2d 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -11,8 +11,8 @@ const withMDX = createMDX({ const NEW_SITE = "https://casbin.apache.org"; const renamedDocs = { - "index": "overview", - "tutorial": "tutorials", + index: "overview", + tutorial: "tutorials", "casbin-rbac-and-rbac96": "rbac-96", "super-admin": "superadmin", "role-manager-api": "rolemanager-api", @@ -22,7 +22,7 @@ const renamedDocs = { "k8s-gate-keeper": "k8s-gatekeeper", "model/rbac": "rbac-overview", "model/mac": "mac-overview", - "api": "api-overview", + api: "api-overview", "category/the-basics": "category/basics", "category/basics": "category/basics", "category/model": "category/access-control-models", @@ -42,16 +42,23 @@ const blogPosts = { "2018-09-23-new-website": "2018/09/23/new-website", "2020-04-21-google-award": "2020/04/21/google-award", "2021-08-19-apisix-casbin-authorization": "2021/08/19/apisix-casbin-authorization", - "2023-12-08-understanding-casbin-matching-in-detail": "2023/12/08/understanding-casbin-matching-in-detail", + "2023-12-08-understanding-casbin-matching-in-detail": + "2023/12/08/understanding-casbin-matching-in-detail", "2025-12-11-casbin-2025-ai-agent-era": "casbin-2025-ai-agent-era", "2026-02-01-upgrading-casbin-go-v2-to-v3": "upgrading-casbin-go-v2-to-v3", }; const movedRedirects = [ - ...Object.entries(renamedDocs).map(([from, to]) => ({ source: `/docs/${from}`, destination: `${NEW_SITE}/docs/${to}/` })), + ...Object.entries(renamedDocs).map(([from, to]) => ({ + source: `/docs/${from}`, + destination: `${NEW_SITE}/docs/${to}/`, + })), { source: "/docs", destination: `${NEW_SITE}/docs/overview/` }, { source: "/docs/:slug", destination: `${NEW_SITE}/docs/:slug/` }, - ...Object.entries(blogPosts).map(([from, to]) => ({ source: `/blog/${from}`, destination: `${NEW_SITE}/blog/${to}/` })), + ...Object.entries(blogPosts).map(([from, to]) => ({ + source: `/blog/${from}`, + destination: `${NEW_SITE}/blog/${to}/`, + })), { source: "/blog/:path*", destination: `${NEW_SITE}/blog/` }, { source: "/user", destination: `${NEW_SITE}/users/` }, { source: "/:page(ecosystem|editor|gallery|help)", destination: `${NEW_SITE}/:page/` }, --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
