Skip to content

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

Entèfas: FileServerEntry

Eksperimantal

Yon antre middleware pou sèvi fichye estatik.

Pwopriyete

mountPath

mountPath: string

Eksperimantal

Prefiks chemen URL kote pou monte middleware la, egzanp "/styles/apps".


serveDir

serveDir: string

Eksperimantal

Katab lokal pou sèvi fichye yo.


extension

extension: string

Eksperimantal

Sèvi sèlman fichye ki chemen URL yo fini ak ekstansyon sa a, egzanp ".css".


contentType

contentType: string

Eksperimantal

Valè pou tèt repons Content-Type la.


pathTransform?

optional pathTransform?: (urlRelativePath) => string

Eksperimantal

Transfòmasyon opsyonèl aplike sou chemen relatif nan URL la anvan li rezoud kont serveDir, e.g. (p) => p.replace(//([^/]+)\.css$/, "/$1/app.css").

Paramèt

urlRelativePath

string

Retounen

string