Skip to content

Commit

Permalink
feat(plugin): update assetsDir
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Jan 6, 2025
1 parent f7411d9 commit 6cdb69a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/fastify/FastifyVite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/types/fastify/FastifyViteOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6cdb69a

Please sign in to comment.