vite-plugin-vercel 5.0.1 → 5.0.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 +7 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -5,18 +5,23 @@ Vercel adapter for [Vite](https://vitejs.dev/).
|
|
|
5
5
|
Bundle your Vite application as supported by [Vercel Output API (v3)](https://vercel.com/docs/build-output-api/v3).
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
|
+
|
|
8
9
|
```bash
|
|
9
10
|
npm i -D vite-plugin-vercel
|
|
10
11
|
```
|
|
12
|
+
|
|
11
13
|
```bash
|
|
12
14
|
yarn add -D vite-plugin-vercel
|
|
13
15
|
```
|
|
16
|
+
|
|
14
17
|
```bash
|
|
15
18
|
pnpm add -D vite-plugin-vercel
|
|
16
19
|
```
|
|
20
|
+
|
|
17
21
|
```bash
|
|
18
22
|
bun add -D vite-plugin-vercel
|
|
19
23
|
```
|
|
24
|
+
|
|
20
25
|
## Features
|
|
21
26
|
|
|
22
27
|
- [x] [SSG/Static files](https://vercel.com/docs/build-output-api/v3/primitives#static-files)
|
|
@@ -102,7 +107,7 @@ You only need to install `@vite-plugin-vercel/vike`, the Vite config stays the s
|
|
|
102
107
|
You can then leverage [config files](https://vike.dev/config) to customize ISR configuration:
|
|
103
108
|
|
|
104
109
|
```ts
|
|
105
|
-
// /pages/product/+config.
|
|
110
|
+
// /pages/product/+config.ts
|
|
106
111
|
|
|
107
112
|
import Page from './Page';
|
|
108
113
|
import type { Config } from 'vike/types';
|
|
@@ -116,7 +121,7 @@ export default {
|
|
|
116
121
|
You will also need to extend the [renderer config](https://vike.dev/config#renderer) so that `vike` is aware of the new parameter:
|
|
117
122
|
|
|
118
123
|
```ts
|
|
119
|
-
// /renderer/+config.
|
|
124
|
+
// /renderer/+config.ts
|
|
120
125
|
|
|
121
126
|
import config from '@vite-plugin-vercel/vike/config';
|
|
122
127
|
import type { Config } from 'vike/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-vercel",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"vike": "*",
|
|
24
24
|
"vite": "^4.4 || ^5.0.2",
|
|
25
|
-
"@vite-plugin-vercel/vike": "5.0.
|
|
25
|
+
"@vite-plugin-vercel/vike": "5.0.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependenciesMeta": {
|
|
28
28
|
"@vite-plugin-vercel/vike": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"typescript": "^5.4.2",
|
|
42
42
|
"vike": "^0.4.165",
|
|
43
43
|
"vite": "^5.1.6",
|
|
44
|
-
"@vite-plugin-vercel/vike": "5.0.
|
|
44
|
+
"@vite-plugin-vercel/vike": "5.0.2"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@brillout/libassert": "^0.5.8",
|