Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: add incidents to public routes (#284)

authored by

Maximilian Kaske and committed by
GitHub
c5988b4b 74012885

+2 -4
+2 -4
apps/web/src/middleware.ts
··· 52 52 return subdomain; 53 53 }; 54 54 55 - // used when trying subdomain slug via status.localhost:3000/incidents 56 - const publicRoutesDev = ["/incidents"]; 57 - 58 55 export default authMiddleware({ 59 56 publicRoutes: [ 60 57 "/", ··· 72 69 "/github", 73 70 "/oss-friends", 74 71 "/status-page/(.*)", 75 - ].concat(process.env.NODE_ENV === "development" ? publicRoutesDev : []), 72 + "/incidents", // used when trying subdomain slug via status.documenso.com/incidents 73 + ], 76 74 ignoredRoutes: ["/api/og", "/discord", "github"], // FIXME: we should check the `publicRoutes` 77 75 beforeAuth: before, 78 76 async afterAuth(auth, req) {