Plugin runs an async function on the config method, awaiting the fs.readFileSync on CRT/KEY pair waiting to be read correctly.
Based on Smallstep Docker example
npm install proxymurder/vite-plugin-smallstep
// vite.config.js
import smallstep from 'vite-plugin-smallstep';
export default defineConfig(async ({ mode }) => {
return {
plugins: [
smallstep({
steppath: STEPPATH // default is '/home/step'
}),
],
};
});