From 7a7fe80c94c2aa74a5860c4d10520578757e1bb7 Mon Sep 17 00:00:00 2001 From: NikitaKalitov Date: Fri, 21 Aug 2026 09:15:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D1=85=D1=8D?= =?UTF-8?q?=D1=88=D0=B8=20=D0=B8=D0=B7=20=D0=BD=D0=B0=D1=85=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D1=84=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2=20?= =?UTF-8?q?=D0=B1=D0=B8=D0=BB=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 4942ac6..bf93bf2 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -17,11 +17,15 @@ export default defineConfig(({ mode }) => { build: { // No content hashes in output filenames — cache-busting on redeploy is // handled at the hosting/nginx level instead (see docs/bitrix-integration.md). + // Flat layout (no "assets/" subfolder): one deployment target's own + // folder is literally named "assets" (local/modules/vniigaz.bpmn/assets/), + // and nesting output under another "assets/" there doubled the path + // segment (.../assets/assets/index.js, 404). Flat works everywhere. rolldownOptions: { output: { - entryFileNames: 'assets/[name].js', - chunkFileNames: 'assets/[name].js', - assetFileNames: 'assets/[name].[ext]', + entryFileNames: '[name].js', + chunkFileNames: '[name].js', + assetFileNames: '[name].[ext]', }, }, },