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