edge-functions 2.8.0 → 2.8.1
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/CHANGELOG.md +16 -0
- package/README.md +2 -2
- package/lib/presets/angular/deliver/azion.config.js +5 -4
- package/lib/presets/astro/deliver/azion.config.js +14 -6
- package/lib/presets/eleventy/deliver/azion.config.js +14 -6
- package/lib/presets/emscripten/compute/azion.config.js +1 -1
- package/lib/presets/gatsby/deliver/azion.config.js +14 -6
- package/lib/presets/hexo/deliver/azion.config.js +14 -6
- package/lib/presets/html/deliver/azion.config.js +1 -1
- package/lib/presets/hugo/deliver/azion.config.js +14 -6
- package/lib/presets/javascript/compute/azion.config.js +1 -1
- package/lib/presets/jekyll/deliver/azion.config.js +14 -6
- package/lib/presets/next/compute/azion.config.js +5 -4
- package/lib/presets/next/deliver/azion.config.js +14 -6
- package/lib/presets/react/deliver/azion.config.js +5 -4
- package/lib/presets/rustwasm/compute/azion.config.js +1 -1
- package/lib/presets/svelte/deliver/azion.config.js +14 -6
- package/lib/presets/typescript/compute/azion.config.js +1 -1
- package/lib/presets/vue/deliver/azion.config.js +5 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
### [2.8.1](https://github.com/aziontech/vulcan/compare/v2.8.0...v2.8.1) (2024-06-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* azion rules for SSG presets ([bef0d75](https://github.com/aziontech/vulcan/commit/bef0d758710581b29546e2fc2e4caf40d1b1b6a3))
|
|
7
|
+
* azion rules for SSG presets ([#338](https://github.com/aziontech/vulcan/issues/338)) ([53eeee1](https://github.com/aziontech/vulcan/commit/53eeee12f1e8030b38aa5b0444afeb65d1ff79e7))
|
|
8
|
+
|
|
9
|
+
### [2.8.1-stage.1](https://github.com/aziontech/vulcan/compare/v2.8.0...v2.8.1-stage.1) (2024-06-07)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* azion rules for SSG presets ([bef0d75](https://github.com/aziontech/vulcan/commit/bef0d758710581b29546e2fc2e4caf40d1b1b6a3))
|
|
15
|
+
* azion rules for SSG presets ([#338](https://github.com/aziontech/vulcan/issues/338)) ([53eeee1](https://github.com/aziontech/vulcan/commit/53eeee12f1e8030b38aa5b0444afeb65d1ff79e7))
|
|
16
|
+
|
|
1
17
|
## [2.8.0](https://github.com/aziontech/vulcan/compare/v2.7.3...v2.8.0) (2024-06-05)
|
|
2
18
|
|
|
3
19
|
|
package/README.md
CHANGED
|
@@ -26,7 +26,6 @@ Table:
|
|
|
26
26
|
| Next Node Pages 12 3 1 Fs | ✅ |
|
|
27
27
|
| Vue Vite Static | ✅ |
|
|
28
28
|
| Next 12 Static | ✅ |
|
|
29
|
-
| Jekyll | ✅ |
|
|
30
29
|
| Simple Js Env Vars | ✅ |
|
|
31
30
|
| Astro Static | ✅ |
|
|
32
31
|
| Eleventy Static | ✅ |
|
|
@@ -36,12 +35,13 @@ Table:
|
|
|
36
35
|
| Svelte Static | ✅ |
|
|
37
36
|
| Simple Js Firewall Event | ✅ |
|
|
38
37
|
| Simple Js Network List With Firewall | ✅ |
|
|
38
|
+
| Jekyll Static | ✅ |
|
|
39
39
|
| Simple Js Esm UseOwnWorker | ✅ |
|
|
40
40
|
| Simple Js Esm Node | ✅ |
|
|
41
41
|
| Simple Js Esm | ✅ |
|
|
42
42
|
| Simple Ts Esm | ✅ |
|
|
43
43
|
|
|
44
|
-
Last test run date: 06/
|
|
44
|
+
Last test run date: 06/07/24 02:58:51 AM
|
|
45
45
|
## Quick Installation
|
|
46
46
|
|
|
47
47
|
For those who just want to use Vulcan in their project without contributing to the development, you can install it directly from npm.
|
|
@@ -8,7 +8,7 @@ const AzionConfig = {
|
|
|
8
8
|
rules: {
|
|
9
9
|
request: [
|
|
10
10
|
{
|
|
11
|
-
name: '
|
|
11
|
+
name: 'Set Storage Origin for All Requests',
|
|
12
12
|
match: '^\\/',
|
|
13
13
|
setOrigin: {
|
|
14
14
|
name: 'origin-storage-default',
|
|
@@ -17,8 +17,9 @@ const AzionConfig = {
|
|
|
17
17
|
},
|
|
18
18
|
|
|
19
19
|
{
|
|
20
|
-
name: '
|
|
21
|
-
match:
|
|
20
|
+
name: 'Deliver Static Assets',
|
|
21
|
+
match:
|
|
22
|
+
'.(css|js|ttf|woff|woff2|pdf|svg|jpg|jpeg|gif|bmp|png|ico|mp4|json|xml|html)$',
|
|
22
23
|
setOrigin: {
|
|
23
24
|
name: 'origin-storage-default',
|
|
24
25
|
type: 'object_storage',
|
|
@@ -27,7 +28,7 @@ const AzionConfig = {
|
|
|
27
28
|
},
|
|
28
29
|
|
|
29
30
|
{
|
|
30
|
-
name: '
|
|
31
|
+
name: 'Redirect to index.html',
|
|
31
32
|
match: '^\\/',
|
|
32
33
|
// eslint-disable-next-line no-template-curly-in-string
|
|
33
34
|
rewrite: {
|
|
@@ -8,7 +8,7 @@ const AzionConfig = {
|
|
|
8
8
|
rules: {
|
|
9
9
|
request: [
|
|
10
10
|
{
|
|
11
|
-
name: '
|
|
11
|
+
name: 'Set Storage Origin for All Requests',
|
|
12
12
|
match: '^\\/',
|
|
13
13
|
setOrigin: {
|
|
14
14
|
name: 'origin-storage-default',
|
|
@@ -16,17 +16,25 @@ const AzionConfig = {
|
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
name: '
|
|
19
|
+
name: 'Deliver Static Assets',
|
|
20
|
+
match:
|
|
21
|
+
'.(css|js|ttf|woff|woff2|pdf|svg|jpg|jpeg|gif|bmp|png|ico|mp4|json|xml|html)$',
|
|
22
|
+
setOrigin: {
|
|
23
|
+
name: 'origin-storage-default',
|
|
24
|
+
type: 'object_storage',
|
|
25
|
+
},
|
|
26
|
+
deliver: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Redirect to index.html',
|
|
20
30
|
match: '.*/$',
|
|
21
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
22
31
|
rewrite: {
|
|
23
|
-
set: () =>
|
|
32
|
+
set: (uri) => `${uri}index.html`,
|
|
24
33
|
},
|
|
25
34
|
},
|
|
26
35
|
{
|
|
27
|
-
name: '
|
|
36
|
+
name: 'Redirect to index.html for Subpaths',
|
|
28
37
|
match: '^(?!.*\\/$)(?![\\s\\S]*\\.[a-zA-Z0-9]+$).*',
|
|
29
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
30
38
|
rewrite: {
|
|
31
39
|
set: (uri) => `${uri}/index.html`,
|
|
32
40
|
},
|
|
@@ -8,7 +8,7 @@ const AzionConfig = {
|
|
|
8
8
|
rules: {
|
|
9
9
|
request: [
|
|
10
10
|
{
|
|
11
|
-
name: '
|
|
11
|
+
name: 'Set Storage Origin for All Requests',
|
|
12
12
|
match: '^\\/',
|
|
13
13
|
setOrigin: {
|
|
14
14
|
name: 'origin-storage-default',
|
|
@@ -16,17 +16,25 @@ const AzionConfig = {
|
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
name: '
|
|
19
|
+
name: 'Deliver Static Assets',
|
|
20
|
+
match:
|
|
21
|
+
'.(css|js|ttf|woff|woff2|pdf|svg|jpg|jpeg|gif|bmp|png|ico|mp4|json|xml|html)$',
|
|
22
|
+
setOrigin: {
|
|
23
|
+
name: 'origin-storage-default',
|
|
24
|
+
type: 'object_storage',
|
|
25
|
+
},
|
|
26
|
+
deliver: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Redirect to index.html',
|
|
20
30
|
match: '.*/$',
|
|
21
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
22
31
|
rewrite: {
|
|
23
|
-
set: () =>
|
|
32
|
+
set: (uri) => `${uri}index.html`,
|
|
24
33
|
},
|
|
25
34
|
},
|
|
26
35
|
{
|
|
27
|
-
name: '
|
|
36
|
+
name: 'Redirect to index.html for Subpaths',
|
|
28
37
|
match: '^(?!.*\\/$)(?![\\s\\S]*\\.[a-zA-Z0-9]+$).*',
|
|
29
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
30
38
|
rewrite: {
|
|
31
39
|
set: (uri) => `${uri}/index.html`,
|
|
32
40
|
},
|
|
@@ -8,7 +8,7 @@ const AzionConfig = {
|
|
|
8
8
|
rules: {
|
|
9
9
|
request: [
|
|
10
10
|
{
|
|
11
|
-
name: '
|
|
11
|
+
name: 'Set Storage Origin for All Requests',
|
|
12
12
|
match: '^\\/',
|
|
13
13
|
setOrigin: {
|
|
14
14
|
name: 'origin-storage-default',
|
|
@@ -16,17 +16,25 @@ const AzionConfig = {
|
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
name: '
|
|
19
|
+
name: 'Deliver Static Assets',
|
|
20
|
+
match:
|
|
21
|
+
'.(css|js|ttf|woff|woff2|pdf|svg|jpg|jpeg|gif|bmp|png|ico|mp4|json|xml|html)$',
|
|
22
|
+
setOrigin: {
|
|
23
|
+
name: 'origin-storage-default',
|
|
24
|
+
type: 'object_storage',
|
|
25
|
+
},
|
|
26
|
+
deliver: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Redirect to index.html',
|
|
20
30
|
match: '.*/$',
|
|
21
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
22
31
|
rewrite: {
|
|
23
|
-
set: () =>
|
|
32
|
+
set: (uri) => `${uri}index.html`,
|
|
24
33
|
},
|
|
25
34
|
},
|
|
26
35
|
{
|
|
27
|
-
name: '
|
|
36
|
+
name: 'Redirect to index.html for Subpaths',
|
|
28
37
|
match: '^(?!.*\\/$)(?![\\s\\S]*\\.[a-zA-Z0-9]+$).*',
|
|
29
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
30
38
|
rewrite: {
|
|
31
39
|
set: (uri) => `${uri}/index.html`,
|
|
32
40
|
},
|
|
@@ -8,7 +8,7 @@ const AzionConfig = {
|
|
|
8
8
|
rules: {
|
|
9
9
|
request: [
|
|
10
10
|
{
|
|
11
|
-
name: '
|
|
11
|
+
name: 'Set Storage Origin for All Requests',
|
|
12
12
|
match: '^\\/',
|
|
13
13
|
setOrigin: {
|
|
14
14
|
name: 'origin-storage-default',
|
|
@@ -16,17 +16,25 @@ const AzionConfig = {
|
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
name: '
|
|
19
|
+
name: 'Deliver Static Assets',
|
|
20
|
+
match:
|
|
21
|
+
'.(css|js|ttf|woff|woff2|pdf|svg|jpg|jpeg|gif|bmp|png|ico|mp4|json|xml|html)$',
|
|
22
|
+
setOrigin: {
|
|
23
|
+
name: 'origin-storage-default',
|
|
24
|
+
type: 'object_storage',
|
|
25
|
+
},
|
|
26
|
+
deliver: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Redirect to index.html',
|
|
20
30
|
match: '.*/$',
|
|
21
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
22
31
|
rewrite: {
|
|
23
|
-
set: () =>
|
|
32
|
+
set: (uri) => `${uri}index.html`,
|
|
24
33
|
},
|
|
25
34
|
},
|
|
26
35
|
{
|
|
27
|
-
name: '
|
|
36
|
+
name: 'Redirect to index.html for Subpaths',
|
|
28
37
|
match: '^(?!.*\\/$)(?![\\s\\S]*\\.[a-zA-Z0-9]+$).*',
|
|
29
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
30
38
|
rewrite: {
|
|
31
39
|
set: (uri) => `${uri}/index.html`,
|
|
32
40
|
},
|
|
@@ -8,7 +8,7 @@ const AzionConfig = {
|
|
|
8
8
|
rules: {
|
|
9
9
|
request: [
|
|
10
10
|
{
|
|
11
|
-
name: '
|
|
11
|
+
name: 'Set Storage Origin for All Requests',
|
|
12
12
|
match: '^\\/',
|
|
13
13
|
setOrigin: {
|
|
14
14
|
name: 'origin-storage-default',
|
|
@@ -16,17 +16,25 @@ const AzionConfig = {
|
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
name: '
|
|
19
|
+
name: 'Deliver Static Assets',
|
|
20
|
+
match:
|
|
21
|
+
'.(css|js|ttf|woff|woff2|pdf|svg|jpg|jpeg|gif|bmp|png|ico|mp4|json|xml|html)$',
|
|
22
|
+
setOrigin: {
|
|
23
|
+
name: 'origin-storage-default',
|
|
24
|
+
type: 'object_storage',
|
|
25
|
+
},
|
|
26
|
+
deliver: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Redirect to index.html',
|
|
20
30
|
match: '.*/$',
|
|
21
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
22
31
|
rewrite: {
|
|
23
|
-
set: () =>
|
|
32
|
+
set: (uri) => `${uri}index.html`,
|
|
24
33
|
},
|
|
25
34
|
},
|
|
26
35
|
{
|
|
27
|
-
name: '
|
|
36
|
+
name: 'Redirect to index.html for Subpaths',
|
|
28
37
|
match: '^(?!.*\\/$)(?![\\s\\S]*\\.[a-zA-Z0-9]+$).*',
|
|
29
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
30
38
|
rewrite: {
|
|
31
39
|
set: (uri) => `${uri}/index.html`,
|
|
32
40
|
},
|
|
@@ -8,7 +8,7 @@ const AzionConfig = {
|
|
|
8
8
|
rules: {
|
|
9
9
|
request: [
|
|
10
10
|
{
|
|
11
|
-
name: '
|
|
11
|
+
name: 'Set Storage Origin for All Requests',
|
|
12
12
|
match: '^\\/',
|
|
13
13
|
setOrigin: {
|
|
14
14
|
name: 'origin-storage-default',
|
|
@@ -16,17 +16,25 @@ const AzionConfig = {
|
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
name: '
|
|
19
|
+
name: 'Deliver Static Assets',
|
|
20
|
+
match:
|
|
21
|
+
'.(css|js|ttf|woff|woff2|pdf|svg|jpg|jpeg|gif|bmp|png|ico|mp4|json|xml|html)$',
|
|
22
|
+
setOrigin: {
|
|
23
|
+
name: 'origin-storage-default',
|
|
24
|
+
type: 'object_storage',
|
|
25
|
+
},
|
|
26
|
+
deliver: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Redirect to index.html',
|
|
20
30
|
match: '.*/$',
|
|
21
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
22
31
|
rewrite: {
|
|
23
|
-
set: () =>
|
|
32
|
+
set: (uri) => `${uri}index.html`,
|
|
24
33
|
},
|
|
25
34
|
},
|
|
26
35
|
{
|
|
27
|
-
name: '
|
|
36
|
+
name: 'Redirect to index.html for Subpaths',
|
|
28
37
|
match: '^(?!.*\\/$)(?![\\s\\S]*\\.[a-zA-Z0-9]+$).*',
|
|
29
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
30
38
|
rewrite: {
|
|
31
39
|
set: (uri) => `${uri}/index.html`,
|
|
32
40
|
},
|
|
@@ -8,7 +8,7 @@ const AzionConfig = {
|
|
|
8
8
|
rules: {
|
|
9
9
|
request: [
|
|
10
10
|
{
|
|
11
|
-
name: '
|
|
11
|
+
name: 'Set Storage Origin for All Requests',
|
|
12
12
|
match: '^\\/_next\\/static\\/', // starts with '/_next/static/'
|
|
13
13
|
setOrigin: {
|
|
14
14
|
name: 'origin-storage-default',
|
|
@@ -17,8 +17,9 @@ const AzionConfig = {
|
|
|
17
17
|
deliver: true,
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
name: '
|
|
21
|
-
match:
|
|
20
|
+
name: 'Deliver Static Assets',
|
|
21
|
+
match:
|
|
22
|
+
'.(css|js|ttf|woff|woff2|pdf|svg|jpg|jpeg|gif|bmp|png|ico|mp4|json|xml|html)$',
|
|
22
23
|
setOrigin: {
|
|
23
24
|
name: 'origin-storage-default',
|
|
24
25
|
type: 'object_storage',
|
|
@@ -26,7 +27,7 @@ const AzionConfig = {
|
|
|
26
27
|
deliver: true,
|
|
27
28
|
},
|
|
28
29
|
{
|
|
29
|
-
name: '
|
|
30
|
+
name: 'Execute Edge Function',
|
|
30
31
|
match: '^/',
|
|
31
32
|
runFunction: {
|
|
32
33
|
path: '.edge/worker.js',
|
|
@@ -8,7 +8,7 @@ const AzionConfig = {
|
|
|
8
8
|
rules: {
|
|
9
9
|
request: [
|
|
10
10
|
{
|
|
11
|
-
name: '
|
|
11
|
+
name: 'Set Storage Origin for All Requests',
|
|
12
12
|
match: '^\\/',
|
|
13
13
|
setOrigin: {
|
|
14
14
|
name: 'origin-storage-default',
|
|
@@ -16,17 +16,25 @@ const AzionConfig = {
|
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
name: '
|
|
19
|
+
name: 'Deliver Static Assets',
|
|
20
|
+
match:
|
|
21
|
+
'.(css|js|ttf|woff|woff2|pdf|svg|jpg|jpeg|gif|bmp|png|ico|mp4|json|xml|html)$',
|
|
22
|
+
setOrigin: {
|
|
23
|
+
name: 'origin-storage-default',
|
|
24
|
+
type: 'object_storage',
|
|
25
|
+
},
|
|
26
|
+
deliver: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Redirect to index.html',
|
|
20
30
|
match: '.*/$',
|
|
21
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
22
31
|
rewrite: {
|
|
23
|
-
set: () =>
|
|
32
|
+
set: (uri) => `${uri}index.html`,
|
|
24
33
|
},
|
|
25
34
|
},
|
|
26
35
|
{
|
|
27
|
-
name: '
|
|
36
|
+
name: 'Redirect to index.html for Subpaths',
|
|
28
37
|
match: '^(?!.*\\/$)(?![\\s\\S]*\\.[a-zA-Z0-9]+$).*',
|
|
29
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
30
38
|
rewrite: {
|
|
31
39
|
set: (uri) => `${uri}/index.html`,
|
|
32
40
|
},
|
|
@@ -8,7 +8,7 @@ const AzionConfig = {
|
|
|
8
8
|
rules: {
|
|
9
9
|
request: [
|
|
10
10
|
{
|
|
11
|
-
name: '
|
|
11
|
+
name: 'Set Storage Origin for All Requests',
|
|
12
12
|
match: '^\\/',
|
|
13
13
|
setOrigin: {
|
|
14
14
|
name: 'origin-storage-default',
|
|
@@ -17,8 +17,9 @@ const AzionConfig = {
|
|
|
17
17
|
},
|
|
18
18
|
|
|
19
19
|
{
|
|
20
|
-
name: '
|
|
21
|
-
match:
|
|
20
|
+
name: 'Deliver Static Assets',
|
|
21
|
+
match:
|
|
22
|
+
'.(css|js|ttf|woff|woff2|pdf|svg|jpg|jpeg|gif|bmp|png|ico|mp4|json|xml|html)$',
|
|
22
23
|
setOrigin: {
|
|
23
24
|
name: 'origin-storage-default',
|
|
24
25
|
type: 'object_storage',
|
|
@@ -27,7 +28,7 @@ const AzionConfig = {
|
|
|
27
28
|
},
|
|
28
29
|
|
|
29
30
|
{
|
|
30
|
-
name: '
|
|
31
|
+
name: 'Redirect to index.html',
|
|
31
32
|
match: '^\\/',
|
|
32
33
|
// eslint-disable-next-line no-template-curly-in-string
|
|
33
34
|
rewrite: {
|
|
@@ -8,7 +8,7 @@ const AzionConfig = {
|
|
|
8
8
|
rules: {
|
|
9
9
|
request: [
|
|
10
10
|
{
|
|
11
|
-
name: '
|
|
11
|
+
name: 'Set Storage Origin for All Requests',
|
|
12
12
|
match: '^\\/',
|
|
13
13
|
setOrigin: {
|
|
14
14
|
name: 'origin-storage-default',
|
|
@@ -16,17 +16,25 @@ const AzionConfig = {
|
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
name: '
|
|
19
|
+
name: 'Deliver Static Assets',
|
|
20
|
+
match:
|
|
21
|
+
'.(css|js|ttf|woff|woff2|pdf|svg|jpg|jpeg|gif|bmp|png|ico|mp4|json|xml|html)$',
|
|
22
|
+
setOrigin: {
|
|
23
|
+
name: 'origin-storage-default',
|
|
24
|
+
type: 'object_storage',
|
|
25
|
+
},
|
|
26
|
+
deliver: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Redirect to index.html',
|
|
20
30
|
match: '.*/$',
|
|
21
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
22
31
|
rewrite: {
|
|
23
|
-
set: () =>
|
|
32
|
+
set: (uri) => `${uri}index.html`,
|
|
24
33
|
},
|
|
25
34
|
},
|
|
26
35
|
{
|
|
27
|
-
name: '
|
|
36
|
+
name: 'Redirect to index.html for Subpaths',
|
|
28
37
|
match: '^(?!.*\\/$)(?![\\s\\S]*\\.[a-zA-Z0-9]+$).*',
|
|
29
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
30
38
|
rewrite: {
|
|
31
39
|
set: (uri) => `${uri}/index.html`,
|
|
32
40
|
},
|
|
@@ -8,7 +8,7 @@ const AzionConfig = {
|
|
|
8
8
|
rules: {
|
|
9
9
|
request: [
|
|
10
10
|
{
|
|
11
|
-
name: '
|
|
11
|
+
name: 'Set Storage Origin for All Requests',
|
|
12
12
|
match: '^\\/',
|
|
13
13
|
setOrigin: {
|
|
14
14
|
name: 'origin-storage-default',
|
|
@@ -17,8 +17,9 @@ const AzionConfig = {
|
|
|
17
17
|
},
|
|
18
18
|
|
|
19
19
|
{
|
|
20
|
-
name: '
|
|
21
|
-
match:
|
|
20
|
+
name: 'Deliver Static Assets',
|
|
21
|
+
match:
|
|
22
|
+
'.(css|js|ttf|woff|woff2|pdf|svg|jpg|jpeg|gif|bmp|png|ico|mp4|json|xml|html)$',
|
|
22
23
|
setOrigin: {
|
|
23
24
|
name: 'origin-storage-default',
|
|
24
25
|
type: 'object_storage',
|
|
@@ -27,7 +28,7 @@ const AzionConfig = {
|
|
|
27
28
|
},
|
|
28
29
|
|
|
29
30
|
{
|
|
30
|
-
name: '
|
|
31
|
+
name: 'Redirect to index.html',
|
|
31
32
|
match: '^\\/',
|
|
32
33
|
// eslint-disable-next-line no-template-curly-in-string
|
|
33
34
|
rewrite: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "edge-functions",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.8.
|
|
4
|
+
"version": "2.8.1",
|
|
5
5
|
"description": "Tool to launch and build JavaScript/Frameworks. This tool automates polyfills for Edge Computing and assists in creating Workers, notably for the Azion platform.",
|
|
6
6
|
"main": "lib/main.js",
|
|
7
7
|
"bin": {
|