Server side include for vite
// vite.config.js
import ssi from 'vite-plugin-ssi'
export default {
plugins: [ssi({
remoteBasePath: 'http://xxx',
})]
}
interface Options {
/**
* Apply the plugin only for serve or for build.
*/
apply?: 'serve' | 'build';
remoteBasePath: string;
}
MIT