Skip to content

Duplicate asset paths added to @fastify/static instance for assets #201

Open
@FrancoRATOVOSON

Description

@FrancoRATOVOSON

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Fastify version

^5.2.1

Plugin version

8.0.0-alpha.2

Node.js version

22.13.0

Operating system

macOS

Operating system version (i.e. 20.04, 11.3, 10)

15.3.1

Description

This error happens afer I build the app and try to run it in production mode.

In the repos I provided, you just have to npm run build and start.

PS: this repository aims to be my contribution to this prject. 'Till you guys are able to fully support typescript and update the doc & examples, I created this repository to provide example & templates to impatient users like me who can't wait to use this amazing tool.

Link to code that reproduces the bug

https://github.com/FrancoRATOVOSON/fastify-vite-examples/tree/fastify-vite-issue-201/fastify-vite/react-ssr-react-router

Expected Behavior

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions