mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
🐛 fix: skew plugin (#12669)
* fix: skew plugin Signed-off-by: Innei <tukon479@gmail.com> * refactor(vite): enhance vercelSkewProtection to handle static imports and improve coverage - Added handling for static import/export declarations to ensure correct deployment links. - Updated coverage documentation to reflect new handling for static imports and additional cases. - Adjusted comment numbering for clarity in the processing steps. Signed-off-by: Innei <tukon479@gmail.com> * fix: dev proxy Signed-off-by: Innei <tukon479@gmail.com> * refactor(AssistantGroup): streamline contentId handling in GroupMessage component - Simplified the logic for determining contentId by directly using lastAssistantMsg?.id. - Moved the creation and generation state checks to follow the contentId assignment for better clarity. Signed-off-by: Innei <tukon479@gmail.com> * ♻️ refactor: remove chunk error reload retry, keep notification only Made-with: Cursor * fix: inject Signed-off-by: Innei <tukon479@gmail.com> --------- Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
sharedRendererPlugins,
|
||||
sharedRollupOutput,
|
||||
} from './plugins/vite/sharedRendererConfig';
|
||||
import { vercelSkewProtection } from './plugins/vite/vercelSkewProtection';
|
||||
|
||||
const isMobile = process.env.MOBILE === 'true';
|
||||
const mode = process.env.NODE_ENV === 'production' ? 'production' : 'development';
|
||||
@@ -32,6 +33,7 @@ export default defineConfig({
|
||||
define: sharedRendererDefine({ isMobile, isElectron: false }),
|
||||
optimizeDeps: sharedOptimizeDeps,
|
||||
plugins: [
|
||||
vercelSkewProtection(),
|
||||
viteEnvRestartKeys(['APP_URL']),
|
||||
...sharedRendererPlugins({ platform }),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user