diff --git a/package.json b/package.json index 410d3ea..1902d9b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/vite", - "version": "5.4.0", + "version": "5.5.0", "description": "Vite plugin for Athenna Framework.", "license": "MIT", "author": "João Lenon ", diff --git a/src/fastify/FastifyVite.ts b/src/fastify/FastifyVite.ts index 10b2c23..cf90547 100644 --- a/src/fastify/FastifyVite.ts +++ b/src/fastify/FastifyVite.ts @@ -37,7 +37,7 @@ export class FastifyVite { this.scope = scope this.options = Options.create(options, { root: Path.pwd(), - assetsUrl: '/assets', + assetsUrl: '/public/assets', buildDirectory: 'public/assets', dev: Config.is('app.environment', 'production'), manifestFile: this.options?.buildDirectory diff --git a/src/types/fastify/FastifyViteOptions.ts b/src/types/fastify/FastifyViteOptions.ts index 27e39b6..7ee89f4 100644 --- a/src/types/fastify/FastifyViteOptions.ts +++ b/src/types/fastify/FastifyViteOptions.ts @@ -57,7 +57,7 @@ export type FastifyViteOptions = { * The URL to prefix when generating assets URLs. For example: This * could the CDN URL when generating the production build. * - * @default '' + * @default '/public/assets' */ assetsUrl?: string