File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ if (globalThis.counter === 1)
61
61
watchFolders ( ) . catch ( log . error )
62
62
else log . debug ( `Skipping watching folders` )
63
63
64
+ initiateImports ( )
65
+
64
66
serve ( {
65
67
port : ports . api || 3008 ,
66
68
timezone : app . timezone || 'UTC' ,
Original file line number Diff line number Diff line change @@ -8,11 +8,12 @@ const options = parseOptions()
8
8
9
9
log . debug ( 'Running API dev server via' , `bunx --bun vite --config ${ p . viteConfigPath ( 'src/api.ts' ) } ` , options )
10
10
11
+ initiateImports ( )
12
+
11
13
serve ( {
12
14
port : config . ports ?. api , // defaults to 3008
13
15
} )
14
16
15
- initiateImports ( )
16
17
17
18
// the reason we start a Vite dev server next is because we need the Bun server proxied by vite
18
19
await runCommand ( `bunx --bun vite --config ${ p . viteConfigPath ( 'src/api.ts' ) } ` , {
You can’t perform that action at this time.
0 commit comments