Skip to content

Commit 8834691

Browse files
committed
chore: wip
1 parent d745d90 commit 8834691

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

storage/framework/api/dev.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ if (globalThis.counter === 1)
6161
watchFolders().catch(log.error)
6262
else log.debug(`Skipping watching folders`)
6363

64+
initiateImports()
65+
6466
serve({
6567
port: ports.api || 3008,
6668
timezone: app.timezone || 'UTC',

storage/framework/core/actions/src/dev/api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ const options = parseOptions()
88

99
log.debug('Running API dev server via', `bunx --bun vite --config ${p.viteConfigPath('src/api.ts')}`, options)
1010

11+
initiateImports()
12+
1113
serve({
1214
port: config.ports?.api, // defaults to 3008
1315
})
1416

15-
initiateImports()
1617

1718
// the reason we start a Vite dev server next is because we need the Bun server proxied by vite
1819
await runCommand(`bunx --bun vite --config ${p.viteConfigPath('src/api.ts')}`, {

0 commit comments

Comments
 (0)