vite-plugin-vercel 10.0.0-beta.0 → 10.0.0-beta.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/dist/api.d.ts +1 -1
- package/dist/chunk-6F4PWJZI.js +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/{types-BjqDHPFV.d.ts → types.d.ts} +5 -5
- package/dist/types.js +1 -0
- package/dist/universal-middleware-dev.d.ts +1 -1
- package/dist/universal-middleware-dev.js +2 -0
- package/dist/universal-middleware-prod.d.ts +1 -1
- package/dist/universal-middleware-prod.js +1 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -0
- package/package.json +3 -3
- package/index.d.ts +0 -2
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="@photonjs/core" />
|
|
2
2
|
|
|
3
3
|
import * as _vercel_routing_utils from '@vercel/routing-utils';
|
|
4
|
-
import {
|
|
4
|
+
import { ViteVercelConfig, ViteVercelRewrite, ViteVercelRedirect } from './types.js';
|
|
5
5
|
import { PluginContext } from 'rollup';
|
|
6
6
|
import { ViteDevServer } from 'vite';
|
|
7
7
|
import { Photon } from '@photonjs/core';
|
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="@photonjs/core" />
|
|
2
2
|
|
|
3
3
|
import { PluginOption } from 'vite';
|
|
4
|
-
import {
|
|
4
|
+
import { ViteVercelConfig } from './types.js';
|
|
5
5
|
import '@photonjs/core';
|
|
6
6
|
import '@vercel/routing-utils';
|
|
7
7
|
import '@vite-plugin-vercel/schemas';
|
|
@@ -74,6 +74,10 @@ interface VercelOutputIsr extends VercelOutputPrerenderConfig {
|
|
|
74
74
|
symlink?: string;
|
|
75
75
|
route?: string;
|
|
76
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Keys are path relative to .vercel/output/static directory
|
|
79
|
+
*/
|
|
80
|
+
type ViteVercelRouteOverrides = VercelOutputConfig["overrides"];
|
|
77
81
|
interface VercelEntryOptions {
|
|
78
82
|
/**
|
|
79
83
|
* Relative to `.vercel/output/functions`, without extension
|
|
@@ -105,10 +109,6 @@ interface VercelEntryOptions {
|
|
|
105
109
|
* When true, the Serverless Function will stream the response to the client
|
|
106
110
|
*/
|
|
107
111
|
streaming?: boolean;
|
|
108
|
-
/**
|
|
109
|
-
* When true, do not build output files for this entry
|
|
110
|
-
*/
|
|
111
|
-
disabled?: boolean;
|
|
112
112
|
}
|
|
113
113
|
declare module "@photonjs/core" {
|
|
114
114
|
namespace Photon {
|
|
@@ -118,4 +118,4 @@ declare module "@photonjs/core" {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
export type {
|
|
121
|
+
export type { VercelEntryOptions, VercelOutputIsr, ViteVercelConfig, ViteVercelRedirect, ViteVercelRewrite, ViteVercelRouteOverrides };
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./chunk-6F4PWJZI.js";
|
package/dist/utils.d.ts
CHANGED
package/dist/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-vercel",
|
|
3
|
-
"version": "10.0.0-beta.
|
|
3
|
+
"version": "10.0.0-beta.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"./utils": "./dist/utils.js",
|
|
15
15
|
"./api": "./dist/api.js",
|
|
16
16
|
"./types": {
|
|
17
|
-
"types": "./
|
|
17
|
+
"types": "./dist/types.d.ts"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"description": "Vercel adapter for vite",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@brillout/libassert": "^0.5.8",
|
|
38
38
|
"@manypkg/find-root": "^3.1.0",
|
|
39
39
|
"@photonjs/core": "^0.0.13",
|
|
40
|
-
"@photonjs/runtime": "^0.0.
|
|
40
|
+
"@photonjs/runtime": "^0.0.11",
|
|
41
41
|
"@universal-middleware/core": "^0.4.10",
|
|
42
42
|
"@universal-middleware/vercel": "^0.4.22",
|
|
43
43
|
"@vercel/build-utils": "^12.1.0",
|
package/index.d.ts
DELETED