Open vipincodewave opened 9 months ago
pnpm install -D swagger-ui-dist
import { copy } from 'esbuild-plugin-copy';
copy({
assets: [
{
from: ['./node_modules/swagger-ui-dist/swagger-ui-bundle.js'],
to: 'SwaggerUIBundle.js',
},
{
from: ['./node_modules/swagger-ui-dist/swagger-ui-standalone-preset.js'],
to: 'SwaggerUIStandalonePreset.js',
},
],
}),
but where do I put this?
but where do I put this?
Your ESBuild script.
Refused to execute script from 'http://localhost:3000/swagger-ui-bundle.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.