Skip to content

Commit

Permalink
feat(http): start vite server
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Dec 31, 2024
1 parent 845edeb commit 24fef6e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/core",
"version": "5.6.0",
"version": "5.7.0",
"description": "One foundation for multiple applications.",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
Expand Down Expand Up @@ -85,7 +85,7 @@
"@athenna/common": "^5.3.0",
"@athenna/config": "^5.1.0",
"@athenna/cron": "^5.4.0",
"@athenna/http": "^5.6.0",
"@athenna/http": "^5.7.0",
"@athenna/ioc": "^5.0.0",
"@athenna/logger": "^5.1.0",
"@athenna/test": "^5.2.0",
Expand Down
5 changes: 5 additions & 0 deletions src/applications/Http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export class Http {

ioc.safeUse('Athenna/Core/HttpRoute').register()

if (process.argv.includes('--vite')) {
await server.viteReady()
}

await server.listen({ host: options.host, port: options.port })

if (Config.notExists('rc.bootLogs') || Config.is('rc.bootLogs', false)) {
Expand Down Expand Up @@ -79,6 +83,7 @@ export class Http {
await kernel.registerHelmet()
await kernel.registerStatic()
await kernel.registerSwagger()
await kernel.registerVite()
await kernel.registerRateLimit()
await kernel.registerRTracer(options.trace)
await kernel.registerLoggerTerminator()
Expand Down

0 comments on commit 24fef6e

Please sign in to comment.