lora-studio / custom-plugin.ts
enzostvs's picture
enzostvs HF staff
use express to render data assets
ac02d1c
raw
history blame
273 Bytes
import express from 'express';
const assets = express.static('/data');
const configureServer = (server) => {
server.middlewares.use(assets);
}
export const customPlugin = () => ({
name: "custom-plugin",
configureServer,
configurePreviewServer: configureServer,
})