@catmint/adapter-vercel 0.0.0-prealpha.1 → 0.0.0-prealpha.2
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 +45 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# @catmint/adapter-vercel
|
|
2
|
+
|
|
3
|
+
Vercel deployment adapter for [Catmint](https://github.com/darylcecile/catmint).
|
|
4
|
+
|
|
5
|
+
Generates output in the [Vercel Build Output API v3](https://vercel.com/docs/build-output-api/v3) format, including serverless functions, static assets, and prerender functions for cached routes.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add @catmint/adapter-vercel
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
// catmint.config.ts
|
|
17
|
+
import { defineConfig } from "catmint/config";
|
|
18
|
+
import vercelAdapter from "@catmint/adapter-vercel";
|
|
19
|
+
|
|
20
|
+
export default defineConfig({
|
|
21
|
+
mode: "fullstack",
|
|
22
|
+
adapter: vercelAdapter({
|
|
23
|
+
runtime: "nodejs",
|
|
24
|
+
regions: ["iad1"],
|
|
25
|
+
}),
|
|
26
|
+
});
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Options
|
|
30
|
+
|
|
31
|
+
| Option | Type | Default | Description |
|
|
32
|
+
| --------- | ---------------------- | ---------- | --------------------------- |
|
|
33
|
+
| `runtime` | `"nodejs"` \| `"edge"` | `"nodejs"` | Serverless function runtime |
|
|
34
|
+
| `regions` | `string[]` | -- | Deployment regions |
|
|
35
|
+
|
|
36
|
+
## Deploy
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
catmint build
|
|
40
|
+
vercel deploy --prebuilt
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## License
|
|
44
|
+
|
|
45
|
+
GNU General Public License v2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@catmint/adapter-vercel",
|
|
3
|
-
"version": "0.0.0-prealpha.
|
|
3
|
+
"version": "0.0.0-prealpha.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"catmint": "0.0.0-prealpha.
|
|
17
|
+
"catmint": "0.0.0-prealpha.2"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"typescript": "^5.7.0"
|