@backstage/plugin-app-backend 0.5.15-next.0 → 0.5.16-next.0
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 +21 -0
- package/config.schema.json +27 -0
- package/package.json +11 -11
- package/config.d.ts +0 -55
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @backstage/plugin-app-backend
|
|
2
2
|
|
|
3
|
+
## 0.5.16-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/config-loader@1.11.0-next.0
|
|
9
|
+
- @backstage/plugin-auth-node@0.7.3-next.0
|
|
10
|
+
- @backstage/backend-plugin-api@1.9.3-next.0
|
|
11
|
+
- @backstage/plugin-app-node@0.1.47-next.0
|
|
12
|
+
|
|
13
|
+
## 0.5.15
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- ca450be: Added a new `app.disablePublicEntryPoint` config option that allows you to opt out of the automatic public sign-in entry point. When set to `true`, the app backend will skip serving the public entry point to unauthenticated users, even if the app was bundled with an `index-public-experimental` entry point.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
- @backstage/backend-plugin-api@1.9.2
|
|
20
|
+
- @backstage/config-loader@1.10.12
|
|
21
|
+
- @backstage/plugin-app-node@0.1.46
|
|
22
|
+
- @backstage/plugin-auth-node@0.7.2
|
|
23
|
+
|
|
3
24
|
## 0.5.15-next.0
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"app": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"packageName": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The name of the app package (in most Backstage repositories, this is the \"name\" field in `packages/app/package.json`) that content should be served from. The same app package should be added as a dependency to the backend package in order for it to be accessible at runtime.\n\nIn a typical setup with a single app package, this will default to 'app'."
|
|
11
|
+
},
|
|
12
|
+
"disableConfigInjection": {
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"description": "Disables the configuration injection. This can be useful if you're running in an environment with a read-only filesystem, or for some other reason don't want configuration to be injected.\n\nNote that this will cause the configuration used when building the app bundle to be used, unless a separate configuration loading strategy is set up.\n\nThis also disables configuration injection though `APP_CONFIG_` environment variables."
|
|
15
|
+
},
|
|
16
|
+
"disableStaticFallbackCache": {
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"description": "By default the app backend plugin will cache previously deployed static assets in the database. If you disable this, it is recommended to set a `staticFallbackHandler` instead."
|
|
19
|
+
},
|
|
20
|
+
"disablePublicEntryPoint": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"description": "Disables the public entry point used for unauthenticated sign-in pages. When the app is bundled with an `index-public-experimental` entry point, the app backend will automatically serve it to unauthenticated users. Set this to `true` to skip that behavior and always serve the main entry point instead."
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-app-backend",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.16-next.0",
|
|
4
4
|
"description": "A Backstage backend plugin that serves the Backstage frontend app",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"files": [
|
|
50
50
|
"dist",
|
|
51
|
-
"config.
|
|
51
|
+
"config.schema.json",
|
|
52
52
|
"migrations/**/*.{js,d.ts}",
|
|
53
53
|
"static"
|
|
54
54
|
],
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"test": "backstage-cli package test"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@backstage/backend-plugin-api": "1.9.
|
|
65
|
+
"@backstage/backend-plugin-api": "1.9.3-next.0",
|
|
66
66
|
"@backstage/config": "1.3.8",
|
|
67
|
-
"@backstage/config-loader": "1.
|
|
67
|
+
"@backstage/config-loader": "1.11.0-next.0",
|
|
68
68
|
"@backstage/errors": "1.3.1",
|
|
69
|
-
"@backstage/plugin-app-node": "0.1.
|
|
70
|
-
"@backstage/plugin-auth-node": "0.7.
|
|
69
|
+
"@backstage/plugin-app-node": "0.1.47-next.0",
|
|
70
|
+
"@backstage/plugin-auth-node": "0.7.3-next.0",
|
|
71
71
|
"@backstage/types": "1.2.2",
|
|
72
72
|
"express": "^4.22.0",
|
|
73
73
|
"express-promise-router": "^4.1.0",
|
|
@@ -79,13 +79,13 @@
|
|
|
79
79
|
"luxon": "^3.0.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@backstage/backend-app-api": "1.7.
|
|
83
|
-
"@backstage/backend-defaults": "0.17.
|
|
84
|
-
"@backstage/backend-test-utils": "1.11.
|
|
85
|
-
"@backstage/cli": "0.36.
|
|
82
|
+
"@backstage/backend-app-api": "1.7.2-next.0",
|
|
83
|
+
"@backstage/backend-defaults": "0.17.4-next.0",
|
|
84
|
+
"@backstage/backend-test-utils": "1.11.5-next.0",
|
|
85
|
+
"@backstage/cli": "0.36.4-next.0",
|
|
86
86
|
"@types/express": "^4.17.6",
|
|
87
87
|
"@types/supertest": "^2.0.8",
|
|
88
88
|
"supertest": "^7.0.0"
|
|
89
89
|
},
|
|
90
|
-
"configSchema": "config.
|
|
90
|
+
"configSchema": "config.schema.json"
|
|
91
91
|
}
|
package/config.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 The Backstage Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
export interface Config {
|
|
18
|
-
app?: {
|
|
19
|
-
/**
|
|
20
|
-
* The name of the app package (in most Backstage repositories, this is the
|
|
21
|
-
* "name" field in `packages/app/package.json`) that content should be served
|
|
22
|
-
* from. The same app package should be added as a dependency to the backend
|
|
23
|
-
* package in order for it to be accessible at runtime.
|
|
24
|
-
*
|
|
25
|
-
* In a typical setup with a single app package, this will default to 'app'.
|
|
26
|
-
*/
|
|
27
|
-
packageName?: string;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Disables the configuration injection. This can be useful if you're running in an environment
|
|
31
|
-
* with a read-only filesystem, or for some other reason don't want configuration to be injected.
|
|
32
|
-
*
|
|
33
|
-
* Note that this will cause the configuration used when building the app bundle to be used, unless
|
|
34
|
-
* a separate configuration loading strategy is set up.
|
|
35
|
-
*
|
|
36
|
-
* This also disables configuration injection though `APP_CONFIG_` environment variables.
|
|
37
|
-
*/
|
|
38
|
-
disableConfigInjection?: boolean;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* By default the app backend plugin will cache previously deployed static assets in the database.
|
|
42
|
-
* If you disable this, it is recommended to set a `staticFallbackHandler` instead.
|
|
43
|
-
*/
|
|
44
|
-
disableStaticFallbackCache?: boolean;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Disables the public entry point used for unauthenticated sign-in pages.
|
|
48
|
-
* When the app is bundled with an `index-public-experimental` entry point,
|
|
49
|
-
* the app backend will automatically serve it to unauthenticated users.
|
|
50
|
-
* Set this to `true` to skip that behavior and always serve the main
|
|
51
|
-
* entry point instead.
|
|
52
|
-
*/
|
|
53
|
-
disablePublicEntryPoint?: boolean;
|
|
54
|
-
};
|
|
55
|
-
}
|