@@ -15,7 +15,7 @@ type Options = {
15
15
plugins : PluginDetails [ ]
16
16
}
17
17
18
- type IntializedOptions = Required < Pick < AdminOptions , "path" | "disable" > > &
18
+ type InitializedOptions = Required < Pick < AdminOptions , "path" | "disable" > > &
19
19
AdminOptions & {
20
20
outDir : string
21
21
sources ?: string [ ]
@@ -46,7 +46,7 @@ export default async function adminLoader({
46
46
}
47
47
}
48
48
49
- const adminOptions : IntializedOptions = {
49
+ const adminOptions : InitializedOptions = {
50
50
disable : false ,
51
51
sources,
52
52
plugins : pluginAdminPaths ,
@@ -73,15 +73,18 @@ export default async function adminLoader({
73
73
return serveProductionBuild ( app , adminOptions )
74
74
}
75
75
76
- async function initDevelopmentServer ( app : Express , options : IntializedOptions ) {
76
+ async function initDevelopmentServer (
77
+ app : Express ,
78
+ options : InitializedOptions
79
+ ) {
77
80
const { develop } = await import ( "@medusajs/admin-bundler" )
78
81
79
82
const adminMiddleware = await develop ( options )
80
83
app . use ( options . path , adminMiddleware )
81
84
return app
82
85
}
83
86
84
- async function serveProductionBuild ( app : Express , options : IntializedOptions ) {
87
+ async function serveProductionBuild ( app : Express , options : InitializedOptions ) {
85
88
const { serve } = await import ( "@medusajs/admin-bundler" )
86
89
87
90
const adminRoute = await serve ( options )
0 commit comments