diff --git a/forge/routes/ui/index.js b/forge/routes/ui/index.js index 4789c9f26d..4b9d4e8d7d 100644 --- a/forge/routes/ui/index.js +++ b/forge/routes/ui/index.js @@ -27,7 +27,7 @@ module.exports = async function (app) { * feConfig - the 'frontend' portion of our flowforge.yml */ async function injectAnalytics (config) { - if (!cachedIndex) { + if (process.env.NODE_ENV === 'development' || !cachedIndex) { const telemetry = config.telemetry const support = config.support const filepath = path.join(frontendAssetsDir, 'index.html') diff --git a/test/e2e/frontend/cypress/tests/admin/offboarding.spec.js b/test/e2e/frontend/cypress/tests/admin/offboarding.spec.js index 552e496811..3cb1399931 100644 --- a/test/e2e/frontend/cypress/tests/admin/offboarding.spec.js +++ b/test/e2e/frontend/cypress/tests/admin/offboarding.spec.js @@ -87,7 +87,7 @@ describe('FlowForge - Team Membership', () => { cy.get('[data-action="dialog-confirm"]').click() cy.origin('https://www.google.com', () => { - cy.url().should('eq', 'https://www.google.com/search?q=rick+astley') + cy.url().should('to.match', /^https:\/\/www\.google\.com\/search\?q=rick\+astley/) }) }) })