@dodopayments/nextjs 0.1.3 → 0.1.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.
- package/README.md +4 -5
- package/package.json +9 -4
- package/dist/index.cjs +0 -32
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -13
- package/dist/index.d.ts +0 -13
- package/dist/index.js +0 -32
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# `@dodopayments/nextjs`
|
|
2
2
|
|
|
3
|
-
> **AI Agent Integration Guide:** See the AI Agent Prompt section below for detailed instructions and guidance for AI assistants.
|
|
4
|
-
|
|
5
3
|
A typescript library that exports Handlers for Checkout, Customer Portal, and Webhook routes for easy integration with your Next.js app.
|
|
6
4
|
|
|
5
|
+
> **AI Agent Integration Guide:** See the AI Agent Prompt section below for detailed instructions and guidance for AI assistants.
|
|
6
|
+
|
|
7
7
|
## Documentation
|
|
8
|
+
|
|
8
9
|
Detailed documentation can be found at [Dodo Payments NextJS adaptor](https://docs.dodopayments.com/developer-resources/nextjs-adaptor)
|
|
9
10
|
|
|
10
11
|
## Installation
|
|
@@ -31,10 +32,8 @@ export const GET = Checkout({
|
|
|
31
32
|
environment: "test_mode",
|
|
32
33
|
type: "static", // explicitly specify type (optional, defaults to 'static')
|
|
33
34
|
});
|
|
34
|
-
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
|
|
38
37
|
---
|
|
39
38
|
|
|
40
39
|
### 2. Customer Portal Route Handler
|
|
@@ -290,4 +289,4 @@ Important: Never commit sensitive environment variables directly into your versi
|
|
|
290
289
|
|
|
291
290
|
If the user needs assistance setting up environment variables for their specific deployment environment, ask them what platform they are using (e.g., Vercel, Netlify, AWS, etc.), and provide guidance. You can also add comments to their PR or chat depending on the context
|
|
292
291
|
|
|
293
|
-
```
|
|
292
|
+
```
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodopayments/nextjs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "
|
|
9
|
-
"dev": "
|
|
8
|
+
"build": "rollup -c",
|
|
9
|
+
"dev": "rollup -c -w",
|
|
10
10
|
"format": "prettier --write .",
|
|
11
11
|
"check-format": "prettier --check .",
|
|
12
12
|
"check-types": "tsc --noEmit"
|
|
@@ -37,7 +37,12 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@dodo/typescript-config": "*",
|
|
40
|
-
"
|
|
40
|
+
"rollup": "^4.0.0",
|
|
41
|
+
"@rollup/plugin-typescript": "^11.0.0",
|
|
42
|
+
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
43
|
+
"@rollup/plugin-commonjs": "^25.0.0",
|
|
44
|
+
"rollup-plugin-dts": "^6.1.0",
|
|
45
|
+
"rimraf": "^5.0.0"
|
|
41
46
|
},
|
|
42
47
|
"peerDependencies": {
|
|
43
48
|
"next": "^15.3.4",
|