diff --git a/package-lock.json b/package-lock.json index 0edc71b..ae258c9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@athenna/core", - "version": "5.6.0", + "version": "5.7.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@athenna/core", - "version": "5.6.0", + "version": "5.7.0", "license": "MIT", "dependencies": { "pretty-repl": "^3.1.2", @@ -17,7 +17,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", @@ -130,9 +130,9 @@ } }, "node_modules/@athenna/http": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/@athenna/http/-/http-5.6.0.tgz", - "integrity": "sha512-F3P8roHFL19hBO2rPtHJz2QgzW+deqnAsz0e4OwgZMtwDUTakwvVAn/s7F2+MEd2qzGVsVIyDn01AmfcilG9yA==", + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@athenna/http/-/http-5.7.0.tgz", + "integrity": "sha512-QYlcgOj2tjDS64SImxFcsJ7gqlUZ6rcOm1UgwQ0bXWS7QKq26aome1tYw+EzYWLdPukGgQzgnrJvc3V89WCkRQ==", "dev": true, "engines": { "node": ">=20.0.0" diff --git a/package.json b/package.json index 50c594f..0e81fd2 100644 --- a/package.json +++ b/package.json @@ -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 ", @@ -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", diff --git a/src/applications/Http.ts b/src/applications/Http.ts index ccba957..0b8a94e 100644 --- a/src/applications/Http.ts +++ b/src/applications/Http.ts @@ -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)) { @@ -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()