updates to use new option factory callback pattern

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: blam <ben@blam.sh>
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-01-11 14:59:33 +01:00
parent 4ed8ac14e0
commit 01a318f75d
5 changed files with 132 additions and 129 deletions
+3 -3
View File
@@ -70,9 +70,9 @@ export type AppPluginOptions = {
* The App plugin is responsible for serving the frontend app bundle and static assets.
* @alpha
*/
export const appPlugin = createBackendPlugin({
export const appPlugin = createBackendPlugin((options: AppPluginOptions) => ({
id: 'app',
register(env, options: AppPluginOptions) {
register(env) {
env.registerInit({
deps: {
logger: coreServices.logger,
@@ -101,4 +101,4 @@ export const appPlugin = createBackendPlugin({
},
});
},
});
}));