-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger API documentation is broken in esbuild bundle #2915
Comments
Here's what the first page of esbuild's documentation says about bundling for node:
I'm closing this issue because esbuild is already working as expected. The answer to your question is already in the documentation. |
Is it planned to add support for these node-specific features in the future? |
No, I don’t plan on doing this. |
When I use Fastify in combination with Swagger, the API documentation can not be accessed when running the bundle file by esbuild.
When I run the bundle file, I can see this error in the console:
Trying to access the API documentation at
http://localhost:3000/documentation
then fails with a 404 HTTP error. The documentation thing when I run the unbundled code project.My guess is that the code in the bundle somehow infers with the
@fastify/swagger
dynamic documentation generation so that the output path for the Swagger documentation HTML page is incorrect.You can easily reproduce the issue in this project (further instructions given): https://github.com/MatsG23/esbuild-issue
The text was updated successfully, but these errors were encountered: