@easy-cms/next 0.22.0 → 0.22.1

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 +14 -2
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -1,11 +1,17 @@
1
1
  # @easy-cms/next
2
2
 
3
- Next.js (App Router, 15+) adapter for [Easy CMS](https://github.com/maritonx/easy-cms).
3
+ Next.js adapter for Easy CMS (App Router, 15 or later): route handlers for the REST API and the admin UI, and a typed `getEasyCMS()` for Server Components. Part of [Easy CMS](https://github.com/maritonx/easy-cms), the embedded, code-first headless CMS for Nuxt and Next.js.
4
+
5
+ ## Install
4
6
 
5
7
  ```bash
6
- pnpm add @easy-cms/next @easy-cms/core @easy-cms/db-postgres
8
+ npm install @easy-cms/next @easy-cms/core @easy-cms/db-postgres
7
9
  ```
8
10
 
11
+ Or `pnpm add`, `yarn add` or `bun add`.
12
+
13
+ ## Usage
14
+
9
15
  **1. Wrap `next.config.ts`** so the server build keeps the admin UI and database drivers:
10
16
 
11
17
  ```ts
@@ -50,3 +56,9 @@ tries to query the database while prerendering.
50
56
 
51
57
  `createRouteHandlers(config, { trustProxy: true })` uses `X-Forwarded-For` for login rate limiting;
52
58
  enable it behind a proxy you trust, such as Vercel.
59
+
60
+ ## Links
61
+
62
+ [Next.js](https://maritonx.github.io/easy-cms/guide/next) · [Documentation](https://maritonx.github.io/easy-cms/) ([ภาษาไทย](https://maritonx.github.io/easy-cms/th/)) · [GitHub](https://github.com/maritonx/easy-cms)
63
+
64
+ MIT License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easy-cms/next",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "Next.js adapter for Easy CMS",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -26,19 +26,19 @@
26
26
  "node": ">=22.12"
27
27
  },
28
28
  "dependencies": {
29
- "@easy-cms/admin": "^0.22.0"
29
+ "@easy-cms/admin": "^0.22.1"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "next": ">=15.0.0",
33
33
  "react": ">=19.0.0",
34
- "@easy-cms/core": "^0.22.0"
34
+ "@easy-cms/core": "^0.22.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/react": "^19.2.0",
38
38
  "next": "^16.3.6",
39
39
  "react": "^19.2.0",
40
- "@easy-cms/core": "^0.22.0",
41
- "@easy-cms/db-sqlite": "^0.22.0"
40
+ "@easy-cms/core": "^0.22.1",
41
+ "@easy-cms/db-sqlite": "^0.22.1"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"