mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat: added spa cache control
This commit is contained in:
@@ -23,6 +23,11 @@ const virtualRouteFileChangeReloadPlugin: PluginOption = {
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd());
|
||||
const allowedHosts = env.VITE_ALLOWED_HOSTS?.split(",") ?? [];
|
||||
const version = (
|
||||
env.INFISICAL_PLATFORM_VERSION ||
|
||||
env.VITE_INFISICAL_PLATFORM_VERSION ||
|
||||
"0.0.1"
|
||||
).replaceAll(".", "-");
|
||||
|
||||
return {
|
||||
server: {
|
||||
@@ -38,6 +43,15 @@ export default defineConfig(({ mode }) => {
|
||||
// }
|
||||
// }
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
entryFileNames: `assets/[name]-${version}-[hash].js`,
|
||||
chunkFileNames: `assets/[name]-${version}-[hash].js`,
|
||||
assetFileNames: `assets/[name]-${version}-[hash].[ext]`
|
||||
}
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
tsconfigPaths(),
|
||||
nodePolyfills({
|
||||
|
||||
Reference in New Issue
Block a user