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:
@@ -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({
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user