Skip to content

pantoken / plugins/vite/workspace-orchestrator/src / FileServerEntry

인터페이스: FileServerEntry

실험적

정적 파일 제공 미들웨어 항목 하나.

속성

mountPath

mountPath: string

실험적

미들웨어를 마운트할 URL 경로 접두사, 예: "/styles/apps".


serveDir

serveDir: string

실험적

파일을 제공할 로컬 디렉터리.


extension

extension: string

실험적

URL 경로가 이 확장자로 끝나는 파일만 제공, 예: ".css".


contentType

contentType: string

실험적

Content-Type 응답 헤더의 값.


pathTransform?

optional pathTransform?: (urlRelativePath) => string

실험적

URL-상대 경로를 serveDir에 대해 해석하기 전에 선택적으로 적용되는 변환, 예: (p) => p.replace(//([^/]+)\.css$/, "/$1/app.css").

매개변수

urlRelativePath

string

반환값

string