feat: use fastify as server #2
1 changed files with 4 additions and 1 deletions
|
|
@ -32,7 +32,10 @@ async function serve(args: ParsedArgs) {
|
|||
const { mcflyConfig } = await getMcFlyConfig()
|
||||
|
||||
/**
|
||||
* TODO: config for srcDir
|
||||
* TODO: config
|
||||
* - srcDir, apiDir ?
|
||||
* - autoLoad config
|
||||
* - fastify config
|
||||
*/
|
||||
mcflyConfig.server.serve({ rootDir: rootDir + '/src', apiDir: '/api' })
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue