@sveltejs/adapter-vercel 1.0.0-next.81 → 1.0.0-next.82
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/index.js +0 -78
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -4,83 +4,6 @@ import { fileURLToPath } from 'url';
|
|
|
4
4
|
import { nodeFileTrace } from '@vercel/nft';
|
|
5
5
|
import esbuild from 'esbuild';
|
|
6
6
|
|
|
7
|
-
// rules for clean URLs and trailing slash handling,
|
|
8
|
-
// generated with @vercel/routing-utils
|
|
9
|
-
const redirects = {
|
|
10
|
-
always: [
|
|
11
|
-
{
|
|
12
|
-
src: '^/(?:(.+)/)?index(?:\\.html)?/?$',
|
|
13
|
-
headers: {
|
|
14
|
-
Location: '/$1/'
|
|
15
|
-
},
|
|
16
|
-
status: 308
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
src: '^/(.*)\\.html/?$',
|
|
20
|
-
headers: {
|
|
21
|
-
Location: '/$1/'
|
|
22
|
-
},
|
|
23
|
-
status: 308
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
src: '^/\\.well-known(?:/.*)?$'
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
src: '^/((?:[^/]+/)*[^/\\.]+)$',
|
|
30
|
-
headers: {
|
|
31
|
-
Location: '/$1/'
|
|
32
|
-
},
|
|
33
|
-
status: 308
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
src: '^/((?:[^/]+/)*[^/]+\\.\\w+)/$',
|
|
37
|
-
headers: {
|
|
38
|
-
Location: '/$1'
|
|
39
|
-
},
|
|
40
|
-
status: 308
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
never: [
|
|
44
|
-
{
|
|
45
|
-
src: '^/(?:(.+)/)?index(?:\\.html)?/?$',
|
|
46
|
-
headers: {
|
|
47
|
-
Location: '/$1'
|
|
48
|
-
},
|
|
49
|
-
status: 308
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
src: '^/(.*)\\.html/?$',
|
|
53
|
-
headers: {
|
|
54
|
-
Location: '/$1'
|
|
55
|
-
},
|
|
56
|
-
status: 308
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
src: '^/(.*)/$',
|
|
60
|
-
headers: {
|
|
61
|
-
Location: '/$1'
|
|
62
|
-
},
|
|
63
|
-
status: 308
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
ignore: [
|
|
67
|
-
{
|
|
68
|
-
src: '^/(?:(.+)/)?index(?:\\.html)?/?$',
|
|
69
|
-
headers: {
|
|
70
|
-
Location: '/$1'
|
|
71
|
-
},
|
|
72
|
-
status: 308
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
src: '^/(.*)\\.html/?$',
|
|
76
|
-
headers: {
|
|
77
|
-
Location: '/$1'
|
|
78
|
-
},
|
|
79
|
-
status: 308
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
};
|
|
83
|
-
|
|
84
7
|
/** @type {import('.').default} **/
|
|
85
8
|
export default function ({ external = [], edge, split } = {}) {
|
|
86
9
|
return {
|
|
@@ -115,7 +38,6 @@ export default function ({ external = [], edge, split } = {}) {
|
|
|
115
38
|
|
|
116
39
|
/** @type {any[]} */
|
|
117
40
|
const routes = [
|
|
118
|
-
...redirects[builder.config.kit.trailingSlash],
|
|
119
41
|
...prerendered_redirects,
|
|
120
42
|
{
|
|
121
43
|
src: `/${builder.getAppPath()}/.+`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltejs/adapter-vercel",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.82",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/sveltejs/kit",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"esbuild": "^0.15.12"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@sveltejs/kit": "1.0.0-next.
|
|
30
|
+
"@sveltejs/kit": "1.0.0-next.554",
|
|
31
31
|
"@types/node": "^16.11.68",
|
|
32
32
|
"typescript": "^4.8.4"
|
|
33
33
|
},
|