fix: use DB (not S3 drafts) for chatflow read/update; add AUTH0_BASE_URL; docs: AWS Secrets Manager; bump Next/Vite - #529
Merged
Merged
Conversation
…es (#511) ## Summary - Fixed critical bug where sequential chatflow updates were overwriting each other - Root cause: `updateChatflow` was using stale S3 data instead of fresh DB data - Solution: Use `useDraft=false` to ensure fresh metadata from database ## Technical Details The versioning system has two storage layers (DB for metadata, S3 for drafts), but `updateChatflow` was incorrectly pulling from S3 instead of DB, causing sequential updates to work with outdated data. **One-line fix:** ```typescript // Before: getChatflowById(id, user) - used S3 draft (stale) // After: getChatflowById(id, user, false) - uses DB (fresh) Test Plan - Verify sequential General Settings → API Settings updates preserve all changes - Confirm no impact on editor UI (still uses S3 drafts) - Confirm no impact on predictions (still uses published S3 versions) Impact - ✅ Zero regression risk - surgical fix affecting only update pathway - ✅ Resolves data loss in AAI-625 - ✅ Maintains existing functionality for all other use cases --------- Co-authored-by: Claude <noreply@anthropic.com>
…dates (#527) Bumps the npm_and_yarn group with 2 updates in the / directory: [next](https://github.com/vercel/next.js) and [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite). Updates `next` from 14.2.31 to 14.2.32 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vercel/next.js/releases">next's releases</a>.</em></p> <blockquote> <h2>v14.2.32</h2> <blockquote> <p>[!NOTE]<br /> This release is backporting bug fixes. It does <strong>not</strong> include all pending features/changes on canary.</p> </blockquote> <h3>Core Changes</h3> <ul> <li>fix router handling when setting a location response header <a href="https://redirect.github.com/vercel/next.js/issues/82588">#82588</a></li> </ul> <h3>Credits</h3> <p>Huge thanks to <a href="https://github.com/ztanner"><code>@ztanner</code></a> for helping!</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vercel/next.js/commit/89ee5615520d593e328be994b30cd445ef5d5c17"><code>89ee561</code></a> v14.2.32</li> <li><a href="https://github.com/vercel/next.js/commit/6a974adc455776b335b0db094d4c2e5349d97c97"><code>6a974ad</code></a> [backport v14]: fix router handling when setting a location response header (...</li> <li>See full diff in <a href="https://github.com/vercel/next.js/compare/v14.2.31...v14.2.32">compare view</a></li> </ul> </details> <br /> Updates `vite` from 6.3.6 to 7.0.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitejs/vite/releases">vite's releases</a>.</em></p> <blockquote> <h2>create-vite@7.0.0</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/create-vite@7.0.0/packages/create-vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>plugin-legacy@7.0.0</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/plugin-legacy@7.0.0/packages/plugin-legacy/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>v7.0.0</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v7.0.0/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>v7.0.0-beta.2</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v7.0.0-beta.2/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>v7.0.0-beta.1</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v7.0.0-beta.1/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>plugin-legacy@7.0.0-beta.1</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/plugin-legacy@7.0.0-beta.1/packages/plugin-legacy/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>plugin-legacy@7.0.0-beta.0</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/plugin-legacy@7.0.0-beta.0/packages/plugin-legacy/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>v7.0.0-beta.0</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/v7.0.0-beta.0/packages/vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>create-vite@6.5.0</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/create-vite@6.5.0/packages/create-vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>create-vite@6.4.1</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/create-vite@6.4.1/packages/create-vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> <h2>create-vite@6.4.0</h2> <p>Please refer to <a href="https://github.com/vitejs/vite/blob/create-vite@6.4.0/packages/create-vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md">vite's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/vitejs/vite/compare/v7.0.0-beta.2...v7.0.0">7.0.0</a> (2025-06-24)</h2> <p><img src="https://github.com/vitejs/vite/blob/main/docs/public/og-image-announcing-vite7.png" alt="Vite 7 is out!" /></p> <p>Today, we're excited to announce the release of the next Vite major:</p> <ul> <li><strong><a href="https://vite.dev/blog/announcing-vite7.html">Vite 7.0 announcement blog post</a></strong></li> <li><a href="https://vite.dev/">Docs</a> (translations: <a href="https://cn.vite.dev/">简体中文</a>, <a href="https://ja.vite.dev/">日本語</a>, <a href="https://es.vite.dev/">Español</a>, <a href="https://pt.vite.dev/">Português</a>, <a href="https://ko.vite.dev/">한국어</a>, <a href="https://de.vite.dev/">Deutsch</a>, <a href="https://fa.vite.dev/">فارسی</a>)</li> <li><a href="https://vite.dev/guide/migration.html">Migration Guide</a></li> </ul> <h3>⚠ BREAKING CHANGES</h3> <ul> <li><strong>ssr:</strong> don't access <code>Object</code> variable in ssr transformed code (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19996">#19996</a>)</li> <li>remove <code>experimental.skipSsrTransform</code> option (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/20038">#20038</a>)</li> <li>remove <code>HotBroadcaster</code> (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19988">#19988</a>)</li> <li><strong>css:</strong> always use sass compiler API (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19978">#19978</a>)</li> <li>bump <code>build.target</code> and name it <code>baseline-widely-available</code> (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/20007">#20007</a>)</li> <li>bump required node version to 20.19+, 22.12+ and remove cjs build (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/20032">#20032</a>)</li> <li><strong>css:</strong> remove sass legacy API support (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19977">#19977</a>)</li> <li>remove deprecated <code>HotBroadcaster</code> related types (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19987">#19987</a>)</li> <li>remove deprecated no-op type only properties (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19985">#19985</a>)</li> <li>remove node 18 support (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19972">#19972</a>)</li> <li>remove deprecated hook-level <code>enforce</code>/<code>transform</code> from <code>transformIndexHtml</code> hook (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19349">#19349</a>)</li> <li>remove deprecated splitVendorChunkPlugin (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/19255">#19255</a>)</li> </ul> <h3>Features</h3> <ul> <li><strong>types:</strong> use terser types from terser package (<a href="https://redirect.github.com/vitejs/vite/issues/20274">#20274</a>) (<a href="https://github.com/vitejs/vite/commit/a5799fa74c6190ecbb2da3d280136ff32463afc6">a5799fa</a>)</li> <li>apply some middlewares before <code>configurePreviewServer</code> hook (<a href="https://redirect.github.com/vitejs/vite/issues/20224">#20224</a>) (<a href="https://github.com/vitejs/vite/commit/b989c42cf84378e6cb93970de739941f0d56d6f6">b989c42</a>)</li> <li>apply some middlewares before <code>configureServer</code> hook (<a href="https://redirect.github.com/vitejs/vite/issues/20222">#20222</a>) (<a href="https://github.com/vitejs/vite/commit/f5cc4c0ded337670b439e51bc95f173e2b5cf9ad">f5cc4c0</a>)</li> <li>add base option to import.meta.glob (<a href="https://redirect.github.com/vitejs/vite/issues/20163">#20163</a>) (<a href="https://github.com/vitejs/vite/commit/253d6c6df2ebe3c4a88dabb6cec000128681561f">253d6c6</a>)</li> <li>add <code>this.meta.viteVersion</code> (<a href="https://redirect.github.com/vitejs/vite/issues/20088">#20088</a>) (<a href="https://github.com/vitejs/vite/commit/f55bf41e91f8dfe829a46e58f0035b19c8ab6a25">f55bf41</a>)</li> <li>allow passing down resolved config to vite's <code>createServer</code> (<a href="https://redirect.github.com/vitejs/vite/issues/19894">#19894</a>) (<a href="https://github.com/vitejs/vite/commit/c1ae9bd4a0542b4703ae7766ad61d072e8b833bd">c1ae9bd</a>)</li> <li>buildApp hook (<a href="https://redirect.github.com/vitejs/vite/issues/19971">#19971</a>) (<a href="https://github.com/vitejs/vite/commit/5da659de902f0a2d6d8beefbf269128383b63887">5da659d</a>)</li> <li><strong>build:</strong> provide names for asset entrypoints (<a href="https://redirect.github.com/vitejs/vite/issues/19912">#19912</a>) (<a href="https://github.com/vitejs/vite/commit/c4e01dc5ab0f1708383c39d28ce62e12b8f374fc">c4e01dc</a>)</li> <li>bump <code>build.target</code> and name it <code>baseline-widely-available</code> (<a href="https://redirect.github.com/vitejs/vite/issues/20007">#20007</a>) (<a href="https://github.com/vitejs/vite/commit/4a8aa82556eb2b9e54673a6aac77873e0eb27fa9">4a8aa82</a>)</li> <li><strong>client:</strong> support opening fileURL in editor (<a href="https://redirect.github.com/vitejs/vite/issues/20040">#20040</a>) (<a href="https://github.com/vitejs/vite/commit/1bde4d25243cd9beaadb01413e896fef562626ef">1bde4d2</a>)</li> <li>make PluginContext available for Vite-specific hooks (<a href="https://redirect.github.com/vitejs/vite/issues/19936">#19936</a>) (<a href="https://github.com/vitejs/vite/commit/7063839d47dfd4ac6be1247ba68e414ffe287b00">7063839</a>)</li> <li>resolve environments plugins at config time (<a href="https://redirect.github.com/vitejs/vite/issues/20120">#20120</a>) (<a href="https://github.com/vitejs/vite/commit/f6a28d5f792ba5cc4dc236e3e6edd05199cabcc8">f6a28d5</a>)</li> <li>stabilize <code>css.preprocessorMaxWorkers</code> and default to <code>true</code> (<a href="https://redirect.github.com/vitejs/vite/issues/19992">#19992</a>) (<a href="https://github.com/vitejs/vite/commit/70aee139ea802478bad56e5e441f187140bcf0cc">70aee13</a>)</li> <li>stabilize <code>optimizeDeps.noDiscovery</code> (<a href="https://redirect.github.com/vitejs/vite/issues/19984">#19984</a>) (<a href="https://github.com/vitejs/vite/commit/6d2dcb494db9f40565f11b50bdbb8c1b7245697d">6d2dcb4</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>deps:</strong> update all non-major dependencies (<a href="https://redirect.github.com/vitejs/vite/issues/20271">#20271</a>) (<a href="https://github.com/vitejs/vite/commit/6b64d63d700154de2c00270300b671cef8863708">6b64d63</a>)</li> <li>keep <code>import.meta.url</code> in bundled Vite (<a href="https://redirect.github.com/vitejs/vite/issues/20235">#20235</a>) (<a href="https://github.com/vitejs/vite/commit/3bf3a8ab00e5a0dfab0bb5741cb871ea30b72651">3bf3a8a</a>)</li> <li><strong>module-runner:</strong> export <code>ssrExportNameKey</code> (<a href="https://redirect.github.com/vitejs/vite/issues/20266">#20266</a>) (<a href="https://github.com/vitejs/vite/commit/ac302a729062dbfc67f762b3c4af46b7893c214f">ac302a7</a>)</li> <li><strong>module-runner:</strong> expose <code>normalizeModuleId</code> (<a href="https://redirect.github.com/vitejs/vite/issues/20277">#20277</a>) (<a href="https://github.com/vitejs/vite/commit/9b98dcbf75546240e1609185828e18a77bac8c8d">9b98dcb</a>)</li> <li><strong>deps:</strong> update all non-major dependencies (<a href="https://redirect.github.com/vitejs/vite/issues/20181">#20181</a>) (<a href="https://github.com/vitejs/vite/commit/d91d4f7ad55edbcb4a51fc23376cbff89f776d30">d91d4f7</a>)</li> <li><strong>deps:</strong> update all non-major dependencies (<a href="https://redirect.github.com/vitejs/vite/issues/20212">#20212</a>) (<a href="https://github.com/vitejs/vite/commit/a80339b1798607dd7389f42964272181cf9eb453">a80339b</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitejs/vite/commit/eafd28ac88d5908cbc3e0a047ed7a12094386436"><code>eafd28a</code></a> chore: rearrange 7.0 changelog (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/20280">#20280</a>)</li> <li><a href="https://github.com/vitejs/vite/commit/b85f32275b443bf6b647572a9209f1e078b5b4dd"><code>b85f322</code></a> release: v7.0.0</li> <li><a href="https://github.com/vitejs/vite/commit/9b98dcbf75546240e1609185828e18a77bac8c8d"><code>9b98dcb</code></a> fix(module-runner): expose <code>normalizeModuleId</code> (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/20277">#20277</a>)</li> <li><a href="https://github.com/vitejs/vite/commit/a5799fa74c6190ecbb2da3d280136ff32463afc6"><code>a5799fa</code></a> feat(types): use terser types from terser package (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/20274">#20274</a>)</li> <li><a href="https://github.com/vitejs/vite/commit/f7377c3eae6323bd3237ff5de5ae55c879fe7325"><code>f7377c3</code></a> chore(deps): update rolldown-related dependencies (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/20270">#20270</a>)</li> <li><a href="https://github.com/vitejs/vite/commit/6b64d63d700154de2c00270300b671cef8863708"><code>6b64d63</code></a> fix(deps): update all non-major dependencies (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/20271">#20271</a>)</li> <li><a href="https://github.com/vitejs/vite/commit/ac302a729062dbfc67f762b3c4af46b7893c214f"><code>ac302a7</code></a> fix(module-runner): export <code>ssrExportNameKey</code> (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/20266">#20266</a>)</li> <li><a href="https://github.com/vitejs/vite/commit/b135918b91e8381c50bd2d076d40e9a65fe68bfe"><code>b135918</code></a> chore: typos in comments (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/20259">#20259</a>)</li> <li><a href="https://github.com/vitejs/vite/commit/3f469012ad38e3cb330adc74a8b3ec88561c822e"><code>3f46901</code></a> perf(utils): improve performance of <code>numberToPos</code> (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/20244">#20244</a>)</li> <li><a href="https://github.com/vitejs/vite/commit/3bf3a8ab00e5a0dfab0bb5741cb871ea30b72651"><code>3bf3a8a</code></a> fix: keep <code>import.meta.url</code> in bundled Vite (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/20235">#20235</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitejs/vite/commits/create-vite@7.0.0/packages/vite">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/the-answerai/theanswer/network/alerts). </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Cameron Taylor <50385537+ct3685@users.noreply.github.com>
…#528) ## Title docs: update links & AWS Secrets Manager notes; next: env passthrough ## Description ### Summary - Rebrand links in **README** and docs to `answeragent.ai`; prune/refresh provider URLs. - Add concise **AWS Secrets Manager** guidance (create/update secret + env overrides). - Improve AWS guide (STS check, domain example fix to `myapp.theanswer.ai`, troubleshooting). - Extend env reference + seed template with optional `SECRETKEY_*` variables. - **Next.js**: expose minimal env vars via `apps/web/next.config.js`: - `AUTH0_BASE_URL` (fallback to `https://${VERCEL_BRANCH_URL}` when unset), - `FLAGSMITH_ENVIRONMENT_ID`, - `AUTH0_SECRET`, - `CHATFLOW_DOMAIN_OVERRIDE`. ### Impact - Docs clarity + security posture improved; easier self-hosting. - Web app reads values from environment; behavior unchanged unless relying on new `AUTH0_BASE_URL` fallback. ### Breaking/Config - None apparent. New env passthroughs only. ### Testing - Verify docs links render correctly. - Set/unset `AUTH0_BASE_URL` with `VERCEL_BRANCH_URL` present to confirm fallback. - Smoke login with `AUTH0_SECRET` set.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
maxtechera
temporarily deployed
to
staging - theanswer-iek0
September 9, 2025 20:21 — with
Render
Inactive
|
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
getChatflowById(..., false)for reads/updates to ensure fresh DB metadata; add JSDoc onuseDraftin service.AUTH0_BASE_URL(withVERCEL_BRANCH_URLfallback), plusFLAGSMITH_ENVIRONMENT_ID,AUTH0_SECRET,CHATFLOW_DOMAIN_OVERRIDE.SECRETKEY_STORAGE_TYPE/SECRETKEY_AWS_REGION/SECRETKEY_AWS_NAME; seed template includes optional vars.^14.2.31→^14.2.32(multiple packages); Vite^6.3.6→^7.0.0(packages/ui).