@fydemy/cms 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -18
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -70,24 +70,7 @@ GITHUB_BRANCH=main
70
70
 
71
71
  > **Security Note**: Use strong passwords and keep `CMS_SESSION_SECRET` at least 32 characters long.
72
72
 
73
- ### 3. Update Middleware
74
-
75
- The init command will guide you to update `middleware.ts` to protect admin routes:
76
-
77
- ```typescript
78
- import { createAuthMiddleware } from "@fydemy/cms";
79
- import { NextRequest } from "next/server";
80
-
81
- export function middleware(request: NextRequest) {
82
- return createAuthMiddleware()(request);
83
- }
84
-
85
- export const config = {
86
- matcher: ["/admin/:path*"],
87
- };
88
- ```
89
-
90
- ### 4. Read Content in Your App
73
+ ### 3. Read Content in Your App
91
74
 
92
75
  ```typescript
93
76
  import { getMarkdownContent } from "@fydemy/cms";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fydemy/cms",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Simple file-based CMS for Next.js without database - with GitHub integration for production",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",