feat: use fastify as server #2

Merged
ayo merged 10 commits from fastify-rewrite into main 2026-06-04 11:03:46 +00:00
Showing only changes of commit 7c0949c518 - Show all commits

View file

@ -32,7 +32,10 @@ async function serve(args: ParsedArgs) {
const { mcflyConfig } = await getMcFlyConfig() const { mcflyConfig } = await getMcFlyConfig()
/** /**
* TODO: config for srcDir * TODO: config
* - srcDir, apiDir ?
* - autoLoad config
* - fastify config
*/ */
mcflyConfig.server.serve({ rootDir: rootDir + '/src', apiDir: '/api' }) mcflyConfig.server.serve({ rootDir: rootDir + '/src', apiDir: '/api' })
} catch (e) { } catch (e) {