将条件从 `process.env.NODE_ENV === 'production'` 更改为 `command === 'build'`,以匹配 Vite 的 `command` 参数,从而实现准确的构建时基础路径归一化。