mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
build(editor): Skip config endpoint insertion in local dev (no-changelog) (#17378)
This commit is contained in:
@@ -115,6 +115,16 @@ const plugins = [
|
||||
modernPolyfills: true,
|
||||
renderLegacyChunks: false,
|
||||
}),
|
||||
{
|
||||
name: 'Insert config script',
|
||||
transformIndexHtml: (html, ctx) => {
|
||||
const replacement = ctx.server
|
||||
? '' // Skip when using Vite dev server
|
||||
: '<script src="/{{REST_ENDPOINT}}/config.js"></script>';
|
||||
|
||||
return html.replace('%CONFIG_SCRIPT%', replacement);
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
const { RELEASE: release } = process.env;
|
||||
|
||||
Reference in New Issue
Block a user