<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[After Deploy - Medium]]></title>
        <description><![CDATA[Production engineering from the other side of the deploy button: Vue and Nuxt in the wild, error monitoring that actually gets read, AI-assisted development with guardrails, and the team habits behind reliable software. - Medium]]></description>
        <link>https://medium.com/after-deploy?source=rss----f3ca401045bc---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>After Deploy - Medium</title>
            <link>https://medium.com/after-deploy?source=rss----f3ca401045bc---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 19:55:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/after-deploy" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Stop Guarding localStorage With typeof. It Is the Crash.]]></title>
            <link>https://medium.com/after-deploy/stop-guarding-localstorage-with-typeof-it-is-the-crash-9091aefd62dc?source=rss----f3ca401045bc---4</link>
            <guid isPermaLink="false">https://medium.com/p/9091aefd62dc</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[vuejs]]></category>
            <dc:creator><![CDATA[Davoud Aslani Fakour]]></dc:creator>
            <pubDate>Mon, 17 Aug 2026 06:51:54 GMT</pubDate>
            <atom:updated>2026-08-17T06:51:55.443Z</atom:updated>
            <content:encoded><![CDATA[<h4>typeof only protects you from undeclared variables. localStorage is not one.</h4><figure><img alt="Dark cover with the line if typeof localStorage equals undefined struck through, above the words: This is not a guard. It is a function call." src="https://cdn-images-1.medium.com/max/1024/1*Wqy95NW73RT3SJoZYWUyeQ.png" /></figure><p>A Sentry alert landed for something I would have sworn was impossible — a SecurityError thrown by a line of code whose entire job was to prevent errors.</p><p>Nobody filed a bug. Nothing was visibly on fire. The alert was the only evidence I had.</p><p>The line that caused it is one I have written myself across multiple codebases, never once thinking about it again:</p><pre>if (typeof localStorage === &#39;undefined&#39;) return</pre><p>It looks like a guard. It is shaped like a guard. typeof is the famously safe operator — the one that doesn’t throw when something doesn’t exist — which is the exact reason people reach for it instead of if (localStorage) .</p><p>It isn’t protecting anything — at least, not the way everyone assumes it does. The exceptions stacking up in Sentry are the receipt.</p><h3>What typeof actually protects you from</h3><p>typeof has exactly one special power, and it’s far narrower than its reputation suggests. If you hand it an identifier that was never declared, it returns “undefined” instead of throwing a ReferenceError .</p><pre>typeof someVariableNobodyEverDeclared  // &quot;undefined&quot;, no throw</pre><p>That is the entire feature. Undeclared identifiers. Nothing else.</p><p>But localStorage isn’t an undeclared identifier. It’s a declared accessor property on Window — a property backed by a getter. So typeof localStorage doesn’t bypass or shortcut anything. It resolves the identifier, finds the property, invokes the getter, and only then evaluates the type of the returned value.</p><p>And that getter throws.</p><p>According to the HTML spec, the localStorage getter throws a SecurityError DOMException when the document is blocked from accessing storage. In practice, that means:</p><ul><li>cookies or site data set to “block all”</li><li>some privacy and incognito configurations</li><li>embedded contexts, including in-app webviews and certain iframes</li></ul><p>In all of these scenarios, typeof localStorage === &#39;undefined&#39; throws before the comparison is even evaluated. The guard doesn’t fail open, nor does it fail closed. The guard is the crash.</p><p>That list is the spec’s version of events. Ours arrived as a Sentry alert email.</p><p>It fired overnight. I didn’t catch it until my morning triage pass — a routine I now run with Claude pre-reading the new issues to weed out duplicate failures wearing fresh stack traces. Claude flagged this one. What caught its attention wasn’t the exception type — it was the distribution.</p><p>The errors were not spread evenly across our traffic. They clustered inside a narrow set of browsers, heavily skewed toward a single region. That detail moved it from “an odd SecurityError” to “one specific population is hitting this, over and over.”</p><p>It is worth being precise about what that clustering meant, because the obvious reading is the wrong one. No country blocks localStorage , and no browser vendor disables it as a blanket policy. What exists is a market where a large share of people browse inside third-party mobile browsers and in-app webviews rather than standalone Chrome or Safari. In that world, DOM storage is a configuration flag owned entirely by the host app. In Android WebView it is domStorageEnabled — and someone has to turn it on deliberately. If it is off, storage simply doesn’t exist, and any page assuming otherwise breaks.</p><p>So the region was never the root cause. It was just where the users with blocked storage happened to concentrate — which is exactly why a global bug looked like a regional one until I read the breakdown properly.</p><figure><img alt="Two-column comparison. Left: typeof on an undeclared identifier returns undefined and does not throw. Right: typeof localStorage finds an accessor on Window, invokes the getter, and throws SecurityError." src="https://cdn-images-1.medium.com/max/1024/1*CvoaL5U2uTozLSIeEsBqjQ.png" /><figcaption>The safety people believe in only exists on the left. On the right, the guard is a function call.</figcaption></figure><p>The mental model most of us carry — “typeof is safe” — is perfectly true for variables, but completely false for getters. And nobody thinks of localStorage as a getter because it doesn’t look like one. It looks like a property that’s just there.</p><h3>Where it was actually throwing</h3><p>The alert pointed straight at initialization — the worst place on the map for this particular exception to land.</p><p>A store touched localStorage during startup. Because store init runs before almost everything else, a throw there doesn’t stay contained — it lands early enough to take the rest of the boot sequence down with it. I want to be careful about how far I push that assumption, though. I have the exception and I have the code path, but I didn’t watch a real user’s screen. What they actually saw on the other end is something I just can’t tell you.</p><p>That’s what makes this the ugliest possible failure mode. The users who hit it were, by definition, the ones with the strictest privacy settings — the very people least likely to file a bug report. Worse, their sessions produced almost no useful context because the thing that broke was the thing that runs before everything else that would have described it.</p><p>That’s the part that should bother you. Without the alert, this never becomes a bug report — it just registers as a slightly lower conversion rate that looks like normal background noise.</p><h3>The fix is boring, and that is the point</h3><p>There’s no clever workaround here. You can’t test and then use, because the test itself is the dangerous operation. You can’t feature-detect your way out, because the detection routine is what throws.</p><p>The only real fix is to stop touching the global directly, anywhere, and wrap every single access:</p><pre>// src/lib/helpers/storage.ts<br>export const safeLocalStorage: Storage = {<br>  get length(): number {<br>    try {<br>      return window.localStorage.length<br>    } catch {<br>      return memoryFallback.length<br>    }<br>  },<br>  getItem(key: string): string | null {<br>    try {<br>      return window.localStorage.getItem(key)<br>    } catch {<br>      return memoryFallback.getItem(key)<br>    }<br>  },<br>  setItem(key: string, value: string): void {<br>    try {<br>      window.localStorage.setItem(key, value)<br>    } catch {<br>      memoryFallback.setItem(key, value)<br>    }<br>  }<br>  // clear, removeItem, key — all the identical shape<br>}</pre><p>Our memoryFallback is just a simple Map implementing the Storage interface. When storage is blocked, the app keeps working — it just doesn’t persist anything.</p><p>That trade is the right one, and I would argue for it hard. A user who blocks site data has already told you they don’t want persistence. “Honoring” that preference by throwing an exception at them isn’t honoring anything.</p><h3>Two details that are easy to get wrong</h3><p><strong>First, </strong><strong>length is a getter too.</strong></p><p>It requires the exact same safety wrap as the methods. This forces the wrapper to be an object literal with a get length() getter rather than a simple class with a plain property. If you miss this, you haven’t fixed the crash — you’ve just relocated it to the first line that checks how many keys exist.</p><p><strong>Second, </strong><strong>sessionStorage needs its own fallback instance, not a shared one.</strong></p><pre>const sessionMemoryFallback = new MemoryStorage()</pre><p>If both wrappers shared the same fallback Map , then in blocked-storage contexts, a key written to session storage would be readable from local storage and would persist beyond the tab’s lifespan. That is a correctness bug that only ever surfaces for the small population of users already stuck on the degraded path. That is the worst possible place to have one, because it’s the exact population you cannot easily observe.</p><p>Our session wrapper includes a clear comment about what belongs in it: state that must survive a page reload but must never outlive the browser tab. In our case, that’s an in-flight payment tracking token. Resuming one of those days later would show someone a stale outcome for a transaction they had long forgotten.</p><h3>The one guard that is still valid</h3><pre>if (typeof window === &#39;undefined&#39;) return  // SSR / build time</pre><p>That one is perfectly fine. Keep it.</p><p>During a build or on the server, there genuinely is no window identifier. This is the classic undeclared-variable scenario — the exact use case typeof was designed for. It’s the same operator doing a completely different job.</p><p>Here is the rule we settled on, and the one I’d recommend to anyone starting out:</p><ul><li><strong>typeof window === &#39;undefined&#39;</strong> guards the SSR and build-time environments.</li><li><strong>safeLocalStorage and </strong><strong>safeSessionStorage</strong> handle blocked storage at runtime.</li><li><strong>Never touch </strong><strong>window.localStorage directly. Not once.</strong> The moment you allow two different paths to storage, someone will eventually use the unsafe one. And it will only break for the users you cannot see.</li></ul><p>That last rule is the load-bearing one. Writing the wrapper is easy. Keeping the wrapper the <em>only</em> door is the actual engineering.</p><h3>The honest truth</h3><p>This doesn’t give you a test.</p><p>You can’t easily simulate blocked storage in jsdom, so the case that produced these errors still isn’t covered by our test suite. I won’t pretend otherwise. Instead, we now enforce the wrapper at the import level — letting the shape of the codebase make the mistake unavailable. I know that’s a weaker guarantee than a formal test.</p><p>And I never confirmed the damage on the other end. I have the exception and the code path that produced it, but no support ticket, no session replay, and not a single user telling me what their screen looked like. We fixed it on the strength of the alert and the spec — which I still think was the right call — but it means the user impact is the one number I can’t give you.</p><p>It also doesn’t make the degraded experience <em>good</em>. It just makes it survivable. A user running on blocked storage gets an app that forgets their state between reloads. For some workflows, that’s actually worse than a clear, explicit error message. We just haven’t built that UI message yet.</p><p>Besides, the wrapper only covers storage. The deeper mistake — assuming that reading a property is a zero-cost operation — shows up in other places. In a browser, simple property access can trigger a function call into privileged code with its own strict rules about whether you belong there. localStorage is just the most famous example. It is far from the only one.</p><h3>The bottom line</h3><p>Every single one of those exceptions came from the same false assumption. There was nothing complex or difficult about the code itself — it was just a line that looked so obviously defensive that no one, myself included, ever paused to read it twice.</p><p>A guard you’ve never tested is a comment with syntax highlighting.</p><p>If you do one thing this week, grep your codebase for typeof localStorage and typeof sessionStorage . If either one is currently standing between your app and a runtime crash, it’s not a guard. And now you know exactly which of your users are going to discover that for you.</p><p>If you want to read more about diagnosing production errors in a Vue and Nuxt app rather than guessing at them, here is the older write-up where I first mapped out debugging in production:</p><p><a href="https://medium.com/after-deploy/debug-front-vue-js-nuxt-js-in-production-2de06d4083fc">https://medium.com/after-deploy/debug-front-vue-js-nuxt-js-in-production-2de06d4083fc</a></p><p><em>Next: we have 85 VueUse composables in this codebase, so I went through every import to find out what </em><em>use actually promises about cleanup — and where it quietly promises nothing.</em></p><p><em>If you’ve run into this one, I’d like to hear which context it showed up in. Leave a comment. I read all of them.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9091aefd62dc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/after-deploy/stop-guarding-localstorage-with-typeof-it-is-the-crash-9091aefd62dc">Stop Guarding localStorage With typeof. It Is the Crash.</a> was originally published in <a href="https://medium.com/after-deploy">After Deploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Debug Front/Vue.js/Nuxt.js in production]]></title>
            <link>https://medium.com/after-deploy/debug-front-vue-js-nuxt-js-in-production-2de06d4083fc?source=rss----f3ca401045bc---4</link>
            <guid isPermaLink="false">https://medium.com/p/2de06d4083fc</guid>
            <category><![CDATA[sentry]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[vue]]></category>
            <category><![CDATA[nuxt]]></category>
            <category><![CDATA[debug]]></category>
            <dc:creator><![CDATA[Davoud Aslani Fakour]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 14:12:26 GMT</pubDate>
            <atom:updated>2026-08-14T14:12:27.679Z</atom:updated>
            <content:encoded><![CDATA[<h3>Find Nuxt Error In Production</h3><p>First I want to talk about the problem:</p><p>Every Front Developer should write code without bugs for production, but you know THAT IS NOT POSSIBLE.</p><p>So what should we do?? Publish a project and leave it to be? Absolutely Not. We/you/any developer should find all bugs in the project and fix them one by one, But how do you know want to find bugs in production mode which runs in many many different devices??? Do you know the way?</p><p><strong>“It’s not important that you know there is a bug, It’s important that you understand when the bugs happen”</strong></p><p>‘You must understand when a bug normally happens so that you can monitor your product by some tools or platform.’</p><h3><strong>solution:</strong></h3><p>At this time have a different way to debug your product (website/app) on the server(Production). So I try to explain one of them for Vue/Nuxt Front Developer.</p><p>You know Vue/Nuxt is based on JavaScript So we need to find some tools to access our build code on production for monitoring and check every reaction user in our product(website/app) one of these tools<a href="https://sentry.io/welcome/"> </a>is <a href="https://sentry.io/welcome/">sentry</a>: <a href="https://sentry.io/welcome/">https://sentry.io/welcome/</a>.</p><p>For maybe you are excited and say stop talking and show Sample code …</p><p>Take easy I begin…</p><p>First, you need to register in sentry and get your Dsn for your app, and then</p><p><a href="https://sentry.io/signup/"></a></p><p>Fill Register Form and Submitted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*2Hg7Rxlp275bwVAKYAQApA.png" /></figure><p>Then you see the welcome page sentry with a URL that looks like this</p><pre><a href="https://sentry.io/onboarding/davodfakor/welcome/">https://sentry.io/onboarding/yourorgnize/welcome/</a></pre><p>click on <strong>Im’ready</strong> and past to this</p><p>for next you see a list of the platform so if you see can&#39;t find any item for Nuxt</p><p>and this So frustrating.</p><p>Now for finding your dashboard sentry you should select Vue js and click create a project.</p><p>Then you see some important info for the project configs in Vue, But we want configs for Nuxt.js, So how to do that ….</p><p>First, find and save DSN: “https://xxxx.ingest.sentry.io/{d/6}”</p><p>Then click to show the first Event at the end of the page.</p><p>Yeh this is the first simple event bug in your sentry dashboard</p><p>But we need real ones for our project so we should get config for our Nuxt project.</p><h3>Installation</h3><p>Add `<a href="http://twitter.com/nuxtjs/sentry">@nuxtjs/sentry</a>` dependency to your project:</p><pre>yarn add <a href="http://twitter.com/nuxtjs/sentry">@nuxtjs/sentry</a></pre><p>Go to nuxt.config.js</p><p>Add below code</p><pre>{<br>  modules: [<br>    &#39;@nuxtjs/sentry&#39;<br>  ],<br>  sentry: {<br>    dsn: &#39;&#39;, // Enter your project&#39;s DSN here<br>    // Additional Module Options go here<br>    // https://sentry.nuxtjs.org/sentry/options<br>    config: {<br>      // Add native Sentry config here<br>      // https://docs.sentry.io/platforms/javascript/guides/vue/configuration/options/<br>    },<br>  }<br>}</pre><p>Then Paste your DSN key in the correct link in the config sentry and finish your first step for config in your project then you need to check it works or not. So let&#39;s use it</p><h4>by this code in your script vue template</h4><pre><em>this</em>.$sentry.captureException(<em>new</em> Error(&#39;example&#39;))</pre><h3>Or your asyncData</h3><pre><em>async</em> asyncData ({ params, $sentry }) {<br>  <em>try</em> {<br>    <em>let</em> { data } = <em>await</em> axios.get(`https://my-api/posts/${params.id}`)<br>    <em>return</em> { title: data.title }<br>  } <em>catch</em> (error) {<br>    $sentry.captureException(error)<br>  }<br>}</pre><h3>Usage in server middleware</h3><pre><em>async</em> nuxtServerInit({ commit }, { $sentry }) {<br>  <em>try</em> {<br>    <em>let</em> { data } = <em>await</em> axios.get(`https://my-api/timestamp`)<br>    commit(&#39;setTimeStamp&#39;, data)<br>  } <em>catch</em> (error) {<br>    $sentry.captureException(error)<br>  }<br>}</pre><p>Yes Yes, this is a simple test for checking work and seeing your some event in dashboard sentry. so now we need to add this method</p><pre>$sentry.captureException(error)</pre><p>to our logger event project.</p><p>we should set this method in different states in our project.</p><p>The first start in middleware vue logger creates a file by vue-logger in the plugin directory and write this</p><pre>import Vue from &#39;vue&#39;<br><br>export default function ({ <em>$sentry </em>}) {<br>  if (process.env.NODE_ENV === &#39;production&#39;) {<br>    Vue.config.warnHandler = function (<em>msg</em>, <em>vm</em>, <em>trace</em>) {<br>      console.warn({ error: `[Vue warn]: ${<em>msg</em>}${<em>trace</em>}`, type: &#39;vue-warn&#39; })<br>      if (!<em>msg</em>.includes(&#39;The client-side rendered virtual DOM tree is not matching&#39;)) {<br>        <em>$sentry</em>.captureException(`[Vue warn]: ${<em>msg</em>}${<em>trace</em>}`)<br>      }<br>    }<br>    Vue.config.errorHandler = (<em>err</em>, <em>vm</em>, <em>info</em>) =&gt; {<br>      console.warn({ error: { error: `Error: ${<em>err</em>.toString()}\nInfo: ${<em>info</em>}`, <em>vm </em>}, type: &#39;vue-error&#39; })<br>      <em>$sentry</em>.captureException(`Error: ${<em>err</em>.toString()}\\nInfo: ${<em>info</em>}`)<br>    }<br>    if (process.client) {<br>      window.onerror = function (<em>message</em>, <em>source</em>, <em>lineno</em>, <em>colno</em>, <em>error</em>) {<br>        console.warn({ error: { <em>message</em>, <em>source</em>, <em>lineno</em>, <em>colno</em>, <em>error </em>}, type: &#39;window-error&#39; })<br>        <em>$sentry</em>.captureException(<em>error</em>)<br>      }<br>    }<br>  }<br>}</pre><p>yes maybe you don&#39;t need check-in</p><pre>process.env.NODE_ENV === &#39;production&#39;</pre><p>So here we access to hook of some event like</p><p>“vue warn “ “vue error” “window log” and pass this log to sentry logger.</p><p>your can check and pass some errors in the layout page component</p><pre>errorCaptured(err,vm,info) {<br>    console.log(`cat EC: ${err.toString()}\ninfo: ${info}`); </pre><pre><em>   $sentry</em>.captureException(`cat EC: ${err.toString()}\ninfo: ${info}`)     <br>return false;<br>  }</pre><p>And at the end any try cath your need check it.</p><pre>.... catch (error) {<br>  this.$<em>sentry</em>.captureException(error)<br>} ....</pre><p>So that all above code maybe you need for log error in your Nuxt project</p><p>you can check another way for access in nuxt hook error and set</p><pre>$<em>sentry</em>.captureException(error)</pre><p>also can check</p><p><a href="https://docs.sentry.io/clients/javascript/usage/">Usage</a></p><p>to add outer params to better check your bug level in the dashboard sentry.</p><p>Don&#39;t forget to set source-map in nuxt config</p><pre>build :  {<br>module.exports = {<br>  <em>extend </em>(<em>config</em>) {<br>    <em>config</em>.devtool = &#39;source-map&#39;<br>  }<br> }<br>}</pre><h3>Consolation</h3><p>Have a different way and platform for debugging your website or application on production in please check theme and use them a customer and manager prime for you 👏👏👏.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2de06d4083fc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/after-deploy/debug-front-vue-js-nuxt-js-in-production-2de06d4083fc">Debug Front/Vue.js/Nuxt.js in production</a> was originally published in <a href="https://medium.com/after-deploy">After Deploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Nuxt.js project with Yarn workspace/Lerna Monorepo In 3 Steps]]></title>
            <link>https://medium.com/after-deploy/creating-a-nuxt-js-project-with-yarn-workspace-lerna-monorepo-in-3-steps-bdd379f4e0ba?source=rss----f3ca401045bc---4</link>
            <guid isPermaLink="false">https://medium.com/p/bdd379f4e0ba</guid>
            <category><![CDATA[nuxtjs]]></category>
            <category><![CDATA[large-scale-projects]]></category>
            <category><![CDATA[yarn-workspace]]></category>
            <category><![CDATA[system-design-nuxt]]></category>
            <category><![CDATA[split]]></category>
            <dc:creator><![CDATA[Davoud Aslani Fakour]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 14:10:57 GMT</pubDate>
            <atom:updated>2026-08-14T14:10:58.254Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I’ll show you how to keep your Nuxt application minimal and avoid ending up with a large messy project, even though you can save your large scale project in this case.</p><figure><img alt="Result Build" src="https://cdn-images-1.medium.com/max/1024/1*X-v4BA8b73Wed3FsPvLq8A.png" /><figcaption>This is result a Nuxt project without splitting by multi app</figcaption></figure><h3><strong>The problem</strong></h3><p>You can see our problem in above picture. When you start to use Nuxt.js Maybe you never think about your final build result ,So I brought it for you in this article, this is a project with many features.</p><h3><strong>The solation</strong></h3><p>keep your app minimal.</p><blockquote><strong><em>BUT HOW???!!!!</em></strong></blockquote><p>Ok let’s show you how to config your large application in Nuxt.js</p><p><strong>There are 3 steps needed to run this app rightly:</strong></p><p>1- config yarn workspace and lerna.</p><p>2- install your Nuxt app.</p><p>3- share your common config and component.</p><h3>1- config yarn workspace and lerna.</h3><p>create an empty workspace with the name nuxt-multi-app or anything else and run this command</p><pre>yarn config set workspaces-experimental true<br>yarn init -y</pre><p>Then you see something like this in your package.json</p><pre>{</pre><pre>  &quot;name&quot;: &quot;nuxt-multi-app&quot;,</pre><pre>  &quot;version&quot;: &quot;1.0.0&quot;,</pre><pre>  &quot;main&quot;: &quot;index.js&quot;,</pre><pre>  &quot;license&quot;: &quot;MIT&quot;</pre><pre>}</pre><p>And add lerna.js to dev dependency</p><pre>yarn add lerna --dev</pre><p>And then you need to add a new config here for Yarn workspace, first, initialize config Lerna.</p><pre>lerna init</pre><p>Now you will see new directory the name of packages and new file config lerna.json we should add new config for this step. Set this config for lerna.json</p><pre>{<br>  &quot;packages&quot;: [<br>    &quot;packages/*&quot;<br>  ],<br>  &quot;version&quot;: &quot;independent&quot;,<br>  &quot;npmClient&quot;: &quot;yarn&quot;,<br>  &quot;useWorkspaces&quot;: true<br>}</pre><p>And add this config in your package.json root</p><pre>  &quot;private&quot;: true,<br>  &quot;workspaces&quot;: [<br>    &quot;packages/*&quot;<br>  ],</pre><p>The final package.json</p><pre>{<br>  &quot;name&quot;: &quot;nuxt-multi-app&quot;,<br>  &quot;version&quot;: &quot;1.0.0&quot;,<br>  &quot;main&quot;: &quot;index.js&quot;,<br>  &quot;license&quot;: &quot;MIT&quot;,<br>  &quot;private&quot;: true,<br>  &quot;workspaces&quot;: [<br>    &quot;packages/*&quot;<br>  ],<br>  &quot;devDependencies&quot;: {<br>    &quot;lerna&quot;: &quot;^4.0.0&quot;<br>  }<br>}</pre><p>so let’s go next step.</p><h3>2- install your Nuxt app.</h3><p>create a new directory inside packages by name system-design</p><p>And run this command in system-design add new package.json</p><pre>yarn init -y</pre><p>And will see new package.json</p><pre>{<br>  &quot;name&quot;: &quot;system-design&quot;,<br>  &quot;version&quot;: &quot;1.0.0&quot;,<br>  &quot;main&quot;: &quot;index.js&quot;,<br>  &quot;license&quot;: &quot;MIT&quot;<br>}</pre><p>edit name value package.json to @app/system-design</p><p>Ok this time we should start create Nuxt project by this way in directory system-design</p><p><a href="https://nuxtjs.org/docs/get-started/installation/#install-nuxt">Installation</a></p><p>But here we should install Nuxt in globally for my all packages.</p><p>First go to root directory and then add run this command</p><pre>yarn add -W nuxt</pre><blockquote><em>Adding the -W flag makes it explicit that we’re adding the dependency to the workspace root.</em></blockquote><p>Next go to directory system-design and nuxt.config.js and config for this by:</p><pre>export default {<br>    modulesDir: [&#39;../../node_modules&#39;],<br>}</pre><p>“modulesDir ” is good option for this case look this:</p><p><a href="https://nuxtjs.org/docs/configuration-glossary/configuration-modulesdir">The modulesDir Property</a></p><p>Finally for this step should run system-design and add this to package.json system-design</p><pre>{<br>  &quot;name&quot;: &quot;system-design&quot;,<br>  &quot;version&quot;: &quot;1.0.0&quot;,<br>  &quot;main&quot;: &quot;index.js&quot;,<br>  &quot;license&quot;: &quot;MIT&quot;,<br>  &quot;scripts&quot;: {<br>    &quot;dev&quot;: &quot;nuxt&quot;<br>  }<br>}</pre><p>And run in from system-design</p><pre>yarn dev</pre><p>Or from root directory run</p><pre>yarn workspace @system-design dev</pre><p>And you will see your log console runner.</p><pre>Listening: <a href="http://localhost:3000/">http://localhost:3000/</a></pre><p>And this step is done.</p><h3>3- share your common config and component.</h3><p>First do all config for a new directory by the name public</p><p>Then here we should have 2 package <em>system-design </em>and <em>public</em></p><p>and each package has own package.json by the name like</p><p>@app/system-design</p><p>@app/public</p><p>create a simple component in system-design and then add package</p><pre>&quot;dependencies&quot;: {<br>    &quot;<a href="http://twitter.com/app/system-design">@app/system-design</a>&quot;: &quot;^1.0.0&quot;<br> }</pre><p>by this command 😎😎</p><pre>lerna add @app/system-design --scope=@app/public</pre><p>after that public/package.json should be like this</p><pre>{<br>    &quot;name&quot;: &quot;<a href="http://twitter.com/app/public">@app/public</a>&quot;,<br>    &quot;version&quot;: &quot;1.0.0&quot;,<br>    &quot;main&quot;: &quot;index.js&quot;,<br>    &quot;license&quot;: &quot;MIT&quot;,<br>    &quot;scripts&quot;: {<br>        &quot;dev&quot;: &quot;nuxt&quot;<br>    },<br>    &quot;dependencies&quot;: {<br>        &quot;<a href="http://twitter.com/app/system-design">@app/system-design</a>&quot;: &quot;^1.0.0&quot;<br>    }<br>}</pre><p>Next for install modules inside nuxt config we most add alias add this object in nuxt.config.js</p><pre>alias: {<br>&#39;<a href="http://twitter.com/design">@design</a>-system&#39;: resolve(__dirname,&#39;../../node_modules/@app/system-design&#39;),<br>}</pre><p>So now we can import component @app/system-design by this way</p><pre>import yourNameComponet from &quot;@system-desig/xxx-xxx&quot;</pre><p>And Well done!!!😉</p><p>You can find final demo for check and stars⭐ in this <a href="https://github.com/davodaslanifakor/nuxt-workspace"><strong>repository</strong></a></p><h3>Resource</h3><ul><li><a href="https://medium.com/dailyjs/5-tips-for-sharing-code-between-nuxtjs-projects-6ffb5b7f8a25">5 Tips for Sharing code between NuxtJS Projects</a></li><li><a href="https://medium.com/@jsilvax/a-workflow-guide-for-lerna-with-yarn-workspaces-60f97481149d">A Workflow Guide for Lerna with Yarn Workspaces</a></li><li><a href="https://medium.com/js-dojo/sharing-reusable-vue-js-components-with-lerna-storybook-and-npm-7dc33b38b011">Sharing reusable Vue.js components with Lerna, Storybook, and npm or GitHub Package Registries</a></li></ul><h3>As soon as possible, the following piece will be written.</h3><p>1- config build and deployment by Pm2</p><p>2- config tailwind.css in this case project.</p><p>3- tell me in comment 😎😎.</p><p>You can read this about debug nuxt.js project <a href="https://medium.com/@DavoudAslaniFakour/debug-front-vue-js-nuxt-js-in-production-2de06d4083fc">here</a> 😉😉.</p><p><a href="https://medium.com/@DavoudAslaniFakour/debug-front-vue-js-nuxt-js-in-production-2de06d4083fc">Debug Front/Vue.js/Nuxt.js in production</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdd379f4e0ba" width="1" height="1" alt=""><hr><p><a href="https://medium.com/after-deploy/creating-a-nuxt-js-project-with-yarn-workspace-lerna-monorepo-in-3-steps-bdd379f4e0ba">Creating a Nuxt.js project with Yarn workspace/Lerna Monorepo In 3 Steps</a> was originally published in <a href="https://medium.com/after-deploy">After Deploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deployment Nuxt2 when use yarn workspace]]></title>
            <link>https://medium.com/after-deploy/deployment-nuxt2-when-use-yarn-workspace-82191ce3e984?source=rss----f3ca401045bc---4</link>
            <guid isPermaLink="false">https://medium.com/p/82191ce3e984</guid>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[pm2]]></category>
            <category><![CDATA[monorepo]]></category>
            <category><![CDATA[nuxt]]></category>
            <category><![CDATA[yarn-workspace]]></category>
            <dc:creator><![CDATA[Davoud Aslani Fakour]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 14:10:20 GMT</pubDate>
            <atom:updated>2026-08-14T14:10:21.711Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deployment Nuxt2 when using workspace/Lerna Monorepo</h3><p>After checkout this <a href="https://medium.com/@DavoudAslaniFakour/creating-a-nuxt-js-project-with-yarn-workspace-lerna-monorepo-in-3-steps-bdd379f4e0ba">blog</a> maybe you need to add a panel part or dashboard so follow this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hnc8dqfWohEPLouJPeFKmw.jpeg" /><figcaption>start config</figcaption></figure><p>Add a new directory in packages/ and call it panel</p><p>Add a package.json by this.</p><pre>{<br>    &quot;name&quot;: &quot;@app/panel&quot;,<br>    &quot;version&quot;: &quot;1.0.0&quot;,<br>    &quot;main&quot;: &quot;index.js&quot;,<br>    &quot;license&quot;: &quot;MIT&quot;,<br>    &quot;scripts&quot;: {<br>        &quot;dev&quot;: &quot;nuxt&quot;,<br>        &quot;build&quot;: &quot;nuxt build&quot;<br>    },<br>    &quot;dependencies&quot;: {<br>    }<br>}  </pre><p>Add your system-design the panel</p><pre>lerna add @app/system-design --scope=@app/panel</pre><p>Add nuxt.config.js for your panel</p><pre>const {resolve} = require(&quot;path&quot;);<br>export default {<br>    modulesDir: [&#39;../../node_modules&#39;],<br>    alias: {<br>        &#39;@design-system&#39;: resolve(__dirname, &#39;../../node_modules/@app/system-design&#39;),<br>    }<br>}</pre><p>Add run dev scripts in root/package.json like this</p><pre>&quot;scripts&quot;: {<br>    &quot;dev:public&quot;: &quot;yarn workspace @app/public dev&quot;,<br>    &quot;dev:panel&quot;: &quot;yarn workspace @app/panel dev&quot;,<br>    &quot;build:public&quot;: &quot;yarn workspace @app/public build&quot;,<br>    &quot;build:panel&quot;: &quot;yarn workspace @app/panel build&quot;<br>  },</pre><p>You need to start deployment on production.</p><p>After u install Nginx, Yarn in your server you need config your server Nginx for this case so go ahead.</p><p>You can find the base config here</p><p><a href="https://nuxtjs.org/deployments/nginx/">NGINX</a></p><p>But for our case, we need customization in your code and server config.</p><p>Our Aim to use Yarn Workspace is to keep minimal our app on large scale so in general when we call a URL like as /panel or / we need that load a custom different directory and bundle.</p><p>For this case, we need config base router Nuxt so in packages/panel/nuxt.config.js</p><pre>router: {<br>  base: &#39;/panel/&#39;<br>}</pre><p><strong>!!!Note</strong></p><p>After the last change all your static directory change</p><p>to /panel/… <strong>instance </strong>of / .</p><p>Now in Nginx for a public package the last config is ok, you need add another config for you panel port. so add this to your sites-available</p><pre>location /panel/ { # Location package directory you before set on base router<br> # This is the Nuxt port you want serve it.<br> proxy_pass http://localhost:3001; <br> proxy_http_version 1.1;<br> proxy_set_header Upgrade $http_upgrade;<br> proxy_set_header Connection &#39;upgrade&#39;;<br> proxy_set_header Host $host;<br> proxy_cache_bypass $http_upgrade;\<br>}</pre><p>Checkout this for config Nginx and Pm2</p><p><a href="https://codesahara.com/blog/deploy-vue-js-with-pm2-and-nginx/">Deploy nuxt app (Vue.js) with Pm2 and Nginx Step by Step.</a></p><p>After updating the server sites-available you need to update Nginx.</p><pre>nginx -t #For test your config is ok or not.<br><br>sudo systemctl restart nginx  #Restart for run new config</pre><p>Your Nuxt project is now ready to be deployed on your server.</p><p>Back to your Nuxt project. Add <a href="https://www.npmjs.com/package/@nuxtjs/dotenv">@nuxtjs/dotenv</a> for config .env now the .env file in the root of your project by this content.</p><pre>APP_PUBLIC_PORT=3000 #The port you config before on nginx<br>APP_START_PANEL_PORT=3001 #`The port you config before on nginx</pre><p>Then you need to add this to your nuxt.config.js to manage your port for your packages.</p><pre>server: {<br>    PORT: process.env.APP_xxx_PORT, <br>    // xxx is your package middle name PUBLIC and PANEL<br> },</pre><p>Bind your config to Pm2 by adding ecosystem.config.js in your root directory.</p><pre>require(&#39;dotenv&#39;).config()<br>module.exports = {<br>  apps: [<br>    {<br>      name: &#39;public&#39;,<br>      exec_mode: &#39;cluster&#39;,<br>      cwd: &#39;./packages/public&#39;,<br>      instances: 1,<br>      script: &#39;../../node_modules/nuxt/bin/nuxt.js&#39;,<br>      args: &#39;start&#39;,<br>      env: {<br>        NODE_ENV: &#39;production&#39;,<br>        PORT: process.env.APP_PUBLIC_PORT<br>      }<br>    },<br>    {<br>      name: &#39;panel&#39;,<br>      exec_mode: &#39;cluster&#39;,<br>      cwd: &#39;./packages/panel&#39;,<br>      instances: 1,<br>      script: &#39;../../node_modules/nuxt/bin/nuxt.js&#39;,<br>      args: &#39;start&#39;,<br>      env: {<br>        NODE_ENV: &#39;production&#39;,<br>        PORT: process.env.APP_START_PANEL_PORT<br>      }<br>    }<br>  ],<br>}</pre><p>It’s possible to config ecosystem.config.js better than this.<br>We can clearly see what we do with that configuration.</p><p>Now all thing you is to build your app and run Pm2.</p><pre><br>yarn build:panel<br><br>yarn build:public #or any package you installed<br><br>pm2 start ecosystem.config.js</pre><p>It’s all done.</p><p><strong>In conclusion</strong></p><p>You can ensure that your Nuxt.js application is properly configured and running smoothly by following the steps outlined in this guide. Keeping your configuration files up to date and deploying with Nginx and PM2 are all key steps to a successful project.</p><p>In order to maintain a robust and secure application, you must pay attention to the details and put in ongoing effort. Maintain current knowledge of best practices and security considerations during the course of your project. As a result, your application will be stable, secure, and easy to use.</p><p>We hope that this guide has been helpful in getting your Nuxt.js project up and running. If you have any questions or comments, please feel free to reach out to us. Good luck, and happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82191ce3e984" width="1" height="1" alt=""><hr><p><a href="https://medium.com/after-deploy/deployment-nuxt2-when-use-yarn-workspace-82191ce3e984">Deployment Nuxt2 when use yarn workspace</a> was originally published in <a href="https://medium.com/after-deploy">After Deploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Assessed the Quality of My Team]]></title>
            <link>https://medium.com/after-deploy/how-i-assessed-the-quality-of-my-team-a8674dca9bdb?source=rss----f3ca401045bc---4</link>
            <guid isPermaLink="false">https://medium.com/p/a8674dca9bdb</guid>
            <category><![CDATA[buildteam]]></category>
            <category><![CDATA[leadership-skills]]></category>
            <category><![CDATA[leadrship]]></category>
            <category><![CDATA[front]]></category>
            <dc:creator><![CDATA[Davoud Aslani Fakour]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 14:09:53 GMT</pubDate>
            <atom:updated>2026-08-14T14:09:55.021Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unraveling the Frontend Talent: How I Assessed the Quality of My Team</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Wk0otMHltQ1tnC7H" /><figcaption>Photo by <a href="https://unsplash.com/@anniespratt?utm_source=medium&amp;utm_medium=referral">Annie Spratt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Once upon a time, not too long ago, I found myself stepping into a new role as a leader of a dynamic front-end development team. As the team leader, my responsibility was not only to manage the team but also to ensure each team member was assigned tasks that matched their abilities and skills.</p><p>I was excited yet curious about the first challenge that came my way. “How do you validate the quality of a team member?” This was the question that echoed through the minds of everyone as I began my journey.</p><p>I knew that a successful team needed more than just technical expertise. It required a harmonious blend of technical skills and essential soft skills. So, I started by getting to know each team member on a personal level and understanding their unique strengths.</p><p>As I dug deeper into their backgrounds, I carefully reviewed their portfolios and past projects. This gave me valuable insights into their coding styles, problem-solving abilities, and the complexity of their previous work. It was a glimpse into their technical proficiency.</p><blockquote><em>However, I realized that a great team member wasn’t just defined by their technical prowess. </em><strong><em>Soft skills</em></strong><em> played a significant role in fostering teamwork and collaboration.</em></blockquote><p>I observed their communication skills, teamwork abilities, and how they handled challenges.</p><p>In this fast-paced world of front-end development, stress management was essential. So, I paid special attention to how they managed stress and maintained their productivity. I knew that supportive and empathetic team culture was crucial for handling the pressures of our industry.</p><p>With their unique experiences and skillsets in mind, I began assigning tasks that aligned with their strengths and interests. I wanted them to feel motivated and empowered by the work they were doing. Challenging opportunities were presented to help them grow and develop new skills, boosting their confidence and adaptability.</p><p>As we moved forward, I encouraged a culture of open and constructive feedback. Team members were encouraged to review each other’s work, fostering a sense of mutual respect and camaraderie. This led to an environment where everyone felt comfortable expressing their concerns and seeking help when needed.</p><blockquote>I recognized that the journey to success was never complete without continuous learning.</blockquote><p>Frontend technologies were constantly evolving, and I wanted my team to stay updated with the latest trends and best practices. So, I provided access to training resources and opportunities for professional development.</p><p>As our story unfolded, the team transformed into a cohesive and high-performing unit. Together, we created outstanding user experiences and drove innovation in our projects.</p><p>Each team member grew not only as a front-end developer but also as a person.</p><p>In the end, I learned that validating the quality of a team member required a delicate balance between technical proficiency, soft skills, and a passion for growth.</p><p>Through empathy, support, and a commitment to their development, we crafted a story of success, one front-end project at a time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8674dca9bdb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/after-deploy/how-i-assessed-the-quality-of-my-team-a8674dca9bdb">How I Assessed the Quality of My Team</a> was originally published in <a href="https://medium.com/after-deploy">After Deploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI at Work: Friend or Foe? Balancing Benefits and Risks of AI/ChatGPT in Your Company]]></title>
            <link>https://medium.com/after-deploy/ai-at-work-friend-or-foe-balancing-benefits-and-risks-of-ai-chatgpt-in-your-company-5f0f2bb3ef1d?source=rss----f3ca401045bc---4</link>
            <guid isPermaLink="false">https://medium.com/p/5f0f2bb3ef1d</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[confidentiality-agreement]]></category>
            <category><![CDATA[future-technology]]></category>
            <category><![CDATA[localization]]></category>
            <category><![CDATA[company-secretary]]></category>
            <dc:creator><![CDATA[Davoud Aslani Fakour]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 14:09:14 GMT</pubDate>
            <atom:updated>2026-08-14T14:09:15.319Z</atom:updated>
            <content:encoded><![CDATA[<p>The main concern using AI/ChatGPT at a company is leakage of information indirectly.</p><p>It’s worth noting that many companies restrict the use of external AI tools.</p><p>Should it prevent me from doing that or should it “encourage me to make a <strong>localization version of AI/ChatGPT</strong> for the company”?</p><figure><img alt="Allow to use AI at company" src="https://cdn-images-1.medium.com/max/1024/1*cs4E4o3pTi7KHxT_-4OCwg.jpeg" /></figure><p>So, the question remains: if AI/ChatGPT offers such benefits, and our dependence on it in development seems almost inseparable, how can we find solutions that address both the incredible potential and the right concerns companies have? The key lies in avoiding the wrong ways of using this technology.</p><p>While AI/ChatGPT can be a great tool, it’s important to use it correctly in your company.</p><p>Here are some point to avoid:</p><p><strong>Risking Sensitive data</strong>: Some information, like customer details or financial records, needs extra protection. Don’t use AI/ChatGPT for tasks involving this data unless your IT department says it’s okay.</p><p><strong>Hidden part</strong>: AI learns from massive amounts of data, and sometimes this data can be biased.</p><p>Be careful! If you use AI/ChatGPT, make sure you understand its potential biases and how they might affect your work.</p><p>And what about <strong>localization version of AI/ChatGPT.<br> </strong>It sound is good but should attention to develop and maintaining that include a cost, Maybe the company need a team of engineer for develop that and my mean is not implement from zero.</p><h4>Charter:</h4><p><strong>Boost your security</strong>: Customization version of AI/ChatGPT is useful to keep company data sage, however is not <strong>really reliable</strong></p><p><strong>Focus on aim company:</strong> It can be upgrade for your tasks of the company to become a better and targeted achievements.</p><h4><strong>Challenges:</strong></h4><p><strong>Development and Maintenance Costs: </strong>the company need to pay a team to create and maintaining for the costume AI tools.</p><blockquote>You don’t necessarily need to build an AI model from scratch. Many pre-trained AI models exist, and you can customize them to your specific needs.</blockquote><blockquote>Explore cloud-based AI solutions that offer pay-as-you-go options, reducing upfront costs for smaller companies.</blockquote><h4><strong>Consolation:</strong></h4><p>Always prioritize following your company’s guidelines on software usage.</p><p>Ensure any AI tool aligns with company data security protocols.</p><p>Be upfront with your manager about exploring AI for development tasks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f0f2bb3ef1d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/after-deploy/ai-at-work-friend-or-foe-balancing-benefits-and-risks-of-ai-chatgpt-in-your-company-5f0f2bb3ef1d">AI at Work: Friend or Foe? Balancing Benefits and Risks of AI/ChatGPT in Your Company</a> was originally published in <a href="https://medium.com/after-deploy">After Deploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Use AI as a Solid Engineer, Not a Vibe Coder]]></title>
            <link>https://medium.com/after-deploy/use-ai-as-a-solid-engineer-not-a-vibe-coder-f9069f9d3bc1?source=rss----f3ca401045bc---4</link>
            <guid isPermaLink="false">https://medium.com/p/f9069f9d3bc1</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Davoud Aslani Fakour]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 14:08:46 GMT</pubDate>
            <atom:updated>2026-08-14T14:08:47.918Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>What a year of AI-first development taught us — and the checklist that kept our codebase from falling apart.</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MkKc29ZpQoFlARPwoVAA5Q.png" /></figure><blockquote><strong>The Shift Nobody Warned Us About</strong></blockquote><p>There’s a moment every engineering team hits when AI tooling stops feeling like a nice-to-have and starts feeling like a necessity. For us at Zoviz, that moment came about a year ago.</p><p>We made a deliberate decision: stop coding the traditional way and go all-in on AI-assisted development. <a href="https://cursor.com/"><strong>Cursor</strong></a> became our primary editor, with <a href="https://claude.ai/"><strong>Claude</strong></a> powering our heavy-lifting logic and context-aware completions. We brought <a href="https://replit.com/refer/Fakour"><strong>Replit</strong></a> into our workflow to rapidly prototype and spin up cloud sandboxes without configuration overhead, and we baked <a href="https://www.coderabbit.ai/"><strong>CodeRabbit</strong></a> directly into our Pull Request (PR) review process. The goal was simple: move faster, debug smarter, and free up mental bandwidth for complex architecture and product thinking.</p><p>It worked. But not without a near-disaster first.</p><p>The problem wasn’t the tools. The tools are genuinely impressive. The problem was the mindset some of us slipped into — what the industry has started calling <strong>vibe coding</strong>. It’s the act of prompting your way to a feature, shipping what <em>looks</em> right, and moving on immediately. No deep understanding of the underlying data flow. No critical questions asked.</p><p><strong>That’s where things get dangerous.</strong></p><h4><strong>What Is Vibe Coding, Really?</strong></h4><p>Vibe coding isn’t just junior behavior. It sneaks up on highly experienced engineers, too. It is what happens when the pure speed of AI output starts to outpace your willingness to manually verify it.</p><p>You ask Cursor to implement a complex client-side data transformation. It instantly spits out 40 lines of TypeScript that look remarkably clean, pass a quick eye test, and even include helpful comments. You ship it. Two weeks later, <strong>Sentry</strong> is screaming at 2:00 AM because an unhandled edge case in that transformation is silently corrupting user data in production.</p><p>The AI wasn’t inherently “wrong.” It gave you a highly plausible solution based on patterns. But you didn’t ask <em>why</em> it structured the data flow that way. You didn’t trace the logic. You skipped thinking about the edge cases because the visual layout of the code looked correct.</p><blockquote><strong>Vibe coding is what happens when you outsource your engineering judgment, not just your typing.</strong></blockquote><h4><strong>The Checklist We Built Before We Changed Anything</strong></h4><p>Before we touched another prompt in a production context, our team sat down and agreed on five core engineering principles. These weren’t rules handed down from management — they came directly from the engineers themselves, born out of a collective realization of what could go wrong if we just blindly trusted the machine.</p><p><em>Here is the checklist we use daily to keep our codebase solid.</em></p><h4><strong>1. Never Trust the First Result — Ask Why and How</strong></h4><p>This is the most important habit, and the easiest to skip when you are racing toward a deadline. When Copilot or Cursor suggests a block of code, your job isn’t to accept or reject it based purely on whether it compiles. Your job is to understand it deeply.</p><p>Ask yourself:</p><ul><li>Why did it choose this specific approach over cleaner alternatives?</li><li>How does this interact with our existing state management or component lifecycle?</li><li>What happens at the absolute edges — empty arrays, null values, or network failures?</li></ul><p>A practical habit we adopted: after accepting any non-trivial AI suggestion, <strong>trace the execution path manually at least once.</strong> Walk through the logic step-by-step as if you wrote it by hand. This keeps your mental model of the codebase accurate — something AI can never do for you.</p><pre>// AI suggested this — looks clean and concise at first glance:<br>const getActiveUsers = (users: User[]) =&gt;<br>  users.filter(u =&gt; u.status === &#39;active&#39;).map(u =&gt; u.id);<br><br>// Robust version: Defending against unexpected runtime data or missing states<br>const getActiveUsers = (users: User[] = []): string[] =&gt; {<br>  if (!users) return [];<br>  return users.filter(u =&gt; u?.status === &#39;active&#39;).map(u =&gt; u.id);<br>};</pre><p>A small, defensive fix. But it makes a massive difference when dealing with unpredictable production payloads.</p><h4>2. Use an AI Agent During PR Review — Before It Hits Production</h4><p>One of the highest-leverage changes we made to our automated workflow was adding an automated AI review step directly into our CI/CD and GitHub pipeline. Dedicated review agents can catch things that easily slip past tired human eyes during a long coding session.</p><p>But here is the rule: <strong>treat AI review as a safety floor, never as an architectural ceiling.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kxdW6AzTDVbYzdBh64HDgA.png" /></figure><p>Use AI to automate the tedious parts of a code review so humans can focus entirely on context, performance, and architecture.</p><h4><strong>3. Write Minimum Tests for Critical Client-Side Paths</strong></h4><p>We aren’t advocates for chasing an arbitrary 100% test coverage metric. We are advocates for meaningful, bulletproof coverage on the critical paths that matter most to our users.</p><p>When AI generates feature code, it tends to handle the “happy path” flawlessly while completely ignoring the edges. Your test suites should specifically target those hidden edges, especially on the frontend where client-side failures directly break user experience.</p><p>Our team rule: for every AI-assisted feature touching payments, authentication, or core user data, we write at minimum:</p><ol><li><strong>One test</strong> for the expected success case.</li><li><strong>One test</strong> for a known, expected failure case.</li><li><strong>One test</strong> for an unexpected or malformed input.</li></ol><pre>// Example: Verifying an AI-generated discount calculation function<br>describe(&#39;applyDiscount&#39;, () =&gt; {<br>  it(&#39;applies a valid percentage discount&#39;, () =&gt; {<br>    expect(applyDiscount(100, 20)).toBe(80);<br>  });<br><br>  it(&#39;returns original price when discount is 0&#39;, () =&gt; {<br>    expect(applyDiscount(100, 0)).toBe(100);<br>  });<br><br>  it(&#39;handles discount greater than 100% gracefully without dipping below zero&#39;, () =&gt; {<br>    expect(applyDiscount(100, 110)).toBeGreaterThanOrEqual(0);<br>  });<br>});</pre><p>This isn’t exhaustive, but it creates an instant safety net. It takes less than 10 minutes to write, yet saves hours of emergency hotfixing later.</p><p><strong>4. Set Up Sentry and Audit Production Daily</strong></p><p>This one is completely non-negotiable. AI-generated code introduces a very specific category of bug: <strong>the silent failure.</strong> This is code that doesn’t explicitly throw a noisy exception or break the page visually, but produces subtly wrong data transformations in unique edge cases. These bugs can hide in production for weeks before anyone notices.</p><p><a href="https://sentry.io/welcome/"><strong>Sentry</strong></a> is our early warning system. We integrated it tightly across our frontend (<a href="https://vuejs.org/"><strong>Vue 3 </strong></a><strong>/ </strong><a href="https://nuxt.com/"><strong>Nuxt</strong></a>) and configured real-time Slack alerts for any new error pattern detected within 24 hours of a fresh deployment.</p><p>To make this stick, we established a few strict team routines:</p><ul><li>Assign a rotating <strong>“Sentry Owner”</strong> from the engineering team each week.</li><li>Tag every single AI-assisted feature deployment with an explicit release marker in Sentry.</li><li>Devote the first 5 minutes of our morning standup to reviewing new production anomalies.</li></ul><p>If you aren’t monitoring production with live telemetry every single day, you are flying completely blind — no matter how smart your LLM prompts are.</p><p><a href="https://medium.com/@DavoudAslaniFakour/debug-front-vue-js-nuxt-js-in-production-2de06d4083fc">Debug Front/Vue.js/Nuxt.js in production</a></p><p><strong>5. Keep Your Engineering Fundamentals Sharp on Purpose</strong></p><p>This is the aspect of the AI transition that nobody talks about enough, and it is the most critical factor for long-term career growth. The more you rely on AI for raw output, the more vital it becomes that you deeply master the foundations beneath it.</p><p>Data structures, algorithmic complexity, network behavior, browser rendering pipelines, and modular state management patterns cannot be securely outsourced to a prompt.</p><p>We intentionally combat skill regression with these deliberate team habits:</p><ul><li><strong>Monthly Fundamental Sessions:</strong> An internal workshop where an engineer presents a core software concept (e.g., event loops, memory leaks) — not a trendy new framework.</li><li><strong>Code Audits:</strong> Regularly reading open-source libraries or digging into legacy areas of our own codebase to challenge assumptions.</li><li><strong>Pre-Flight Research:</strong> If an AI model provides an optimization pattern we haven’t seen before, we research the underlying documentation <em>before</em> merging it, never after.</li></ul><p>The engineers who truly thrive in an AI-first environment aren’t the ones who know the most clever prompting hacks. They are the ones who can look at a wall of AI-generated code and immediately pinpoint exactly where it is fragile, why it works, and what it missed.</p><blockquote><strong><em>AI accelerates a strong engineer. It amplifies the gaps in a weak one.</em></strong></blockquote><h3>The Bigger Picture</h3><p>We aren’t going back to the old, manual way of writing software. AI-assisted development is inherently faster, and at Zoviz, it has fundamentally upgraded our development velocity. But the engineers who extract the most value from these tools are the ones who never forgot what they actually are: tools.</p><p>A senior engineer utilizing Cursor is like a master carpenter using a high-powered nail gun. The nail gun is incredibly fast. But you still need to know exactly where to place the nails, which wood grain to select, and how much load the overall structure needs to hold. Without that fundamental structural knowledge, you are just making a massive mess at a faster speed.</p><p>Vibe coding isn’t a long-term productivity strategy. It is high-interest technical debt with a hidden delay timer.</p><p><a href="https://medium.com/@DavoudAslaniFakour/how-i-assessed-the-quality-of-my-team-a8674dca9bdb">https://medium.com/@DavoudAslaniFakour/how-i-assessed-the-quality-of-my-team-a8674dca9bdb</a></p><p><strong>Use the tools. Trust your fundamentals more.</strong></p><p><em>I’ll be writing more about our specific AI tooling pipelines at Zoviz — including how we integrated automated agent review into our GitHub actions and exactly how our daily Sentry triage workflow is structured. Follow along if you want to optimize your team’s workflow.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9069f9d3bc1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/after-deploy/use-ai-as-a-solid-engineer-not-a-vibe-coder-f9069f9d3bc1">Use AI as a Solid Engineer, Not a Vibe Coder</a> was originally published in <a href="https://medium.com/after-deploy">After Deploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Tell If Your Engineers Are Vibe Coding Before Production Does.]]></title>
            <link>https://medium.com/after-deploy/how-to-tell-if-your-engineers-are-vibe-coding-before-production-does-4f98f14ed751?source=rss----f3ca401045bc---4</link>
            <guid isPermaLink="false">https://medium.com/p/4f98f14ed751</guid>
            <category><![CDATA[engineering-management]]></category>
            <category><![CDATA[team-building]]></category>
            <category><![CDATA[tech-leadership]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai-tools]]></category>
            <dc:creator><![CDATA[Davoud Aslani Fakour]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 14:08:10 GMT</pubDate>
            <atom:updated>2026-08-14T14:08:12.085Z</atom:updated>
            <content:encoded><![CDATA[<h4>A practical framework for tech leads and engineering managers to spot the difference — before it hits production.</h4><figure><img alt="A side-by-side diagnostic framework comparing Vibe Coding Assessment versus Engineering Assessment. The vibe coding side shows high speed metrics but low deep understanding, 0% test coverage, and high assumptions — all pointing toward a potential production failure and Sentry 2AM alert. The engineering side shows high deep understanding, verified flow tracing, 3/3 edge case tests written, and a solid production foundation verified with Cursor and Sentry." src="https://cdn-images-1.medium.com/max/1024/1*_lxbLTc7yDh1XhQ-Jfuo1w.png" /><figcaption><em>Same output speed. Completely different foundation. One ends in a Sentry alert at 2AM — the other doesn’t.</em></figcaption></figure><p><strong>The Problem With Vibe Coding Is That It Looks Like Productivity;This is what makes it hard to catch.</strong></p><p>An engineer who is vibe coding ships features fast. Their PRs look clean. They use the right tools, reference the right patterns, and rarely block the team. On the surface, they look like your most productive person.</p><p>Then three weeks later, Sentry fires at 2am. A silent data corruption bug. A race condition nobody noticed. A payment edge case that only surfaces under specific load. And when you sit down to debug it together, you realize: they never actually understood what they shipped.</p><p>That’s the signature of vibe coding. Not laziness. Not bad intent. Just a gap between output speed and genuine engineering understanding — quietly widening every sprint.</p><p>As a tech lead or engineering manager, your job isn’t to police how engineers write code. It’s to build a team where quality is the default. And to do that, you need to know what to look for.</p><h3>What Vibe Coding Actually Looks Like in Practice</h3><p>Before the framework, let’s be precise about what we’re talking about.</p><p>Vibe coding isn’t just “using AI tools.” Every strong engineer on your team should be using AI tools. Vibe coding is a specific behavior pattern: <strong>accepting AI output without understanding it, verifying it, or owning it.</strong></p><p>It shows up in layers — in code reviews, in standups, in how someone responds when something breaks. Here’s how to read each one.</p><h3>Signal 1: How They Talk About Their Own Code in PR Review</h3><p>This is your clearest window into whether someone understands what they built.</p><p><strong>What vibe coding sounds like in PR comments:</strong></p><ul><li>“AI suggested this approach, seemed clean”</li><li>“Not 100% sure why it works this way but tests pass”</li><li>“Copilot wrote this part, I didn’t change it much”</li></ul><p><strong>What solid engineering sounds like:</strong></p><ul><li>“I chose this pattern over X because our state management needs Y”</li><li>“I added a null guard here because this endpoint occasionally returns empty on cold start”</li><li>“This looks unusual but it’s intentional — here’s why”</li></ul><p>The difference isn’t confidence. It’s <em>ownership</em>. A solid engineer can explain every non-trivial decision in their PR, whether AI helped write it or not. A vibe coder describes what the code does. A solid engineer explains why it does it that way.</p><p><strong>What to do:</strong> In your next PR review, ask one open question: <em>“Why did you structure it this way instead of X?”</em> The answer tells you everything.</p><h3>Signal 2: How They Respond When Something Breaks</h3><p>Production incidents are the most honest diagnostic tool you have as a manager.</p><p><strong>Vibe coder under pressure:</strong></p><ul><li>Immediately reaches for AI to debug what AI wrote</li><li>Can’t trace the execution path from memory</li><li>Fixes the symptom without understanding the root cause</li><li>The same class of bug reappears two sprints later</li></ul><p><strong>Solid engineer under pressure:</strong></p><ul><li>Starts with the system — logs, Sentry, network traces</li><li>Can walk you through the likely failure points before even opening the code</li><li>Fixes the root cause and adds a test or guard to prevent recurrence</li><li>Writes a short post-mortem or shares the finding with the team</li></ul><p>The key question isn’t <em>how fast</em> they fix it. It’s <em>how deeply</em> they understand what happened.</p><p><strong>What to do:</strong> After the next incident, ask them to walk you through their debugging process step by step. Not what they fixed — how they found it.</p><h3>Signal 3: The Quality of Their Questions</h3><p>How an engineer asks for help reveals more about their thinking than almost anything else.</p><p><strong>Vibe coder questions:</strong></p><ul><li>“This AI-generated code isn’t working, can you fix it?”</li><li>“Getting a weird error, not sure what it means”</li><li>“Can you review this? Not sure if it’s right”</li></ul><p><strong>Solid engineer questions:</strong></p><ul><li>“I’m getting this error in the hydration step — I’ve checked X and Y, my current theory is Z. Does that track?”</li><li>“I’m choosing between these two approaches for this use case. Here’s my thinking on the tradeoffs — am I missing something?”</li><li>“Found something unexpected in how Vue handles this lifecycle edge case. Worth discussing?”</li></ul><p>The vibe coder hands you the problem. The solid engineer hands you their thinking and asks you to stress-test it.</p><p><strong>What to do:</strong> Pay attention to the questions your engineers ask in Slack or standups over two weeks. The pattern is unmistakable.</p><h3>Signal 4: Their Relationship With Tests</h3><p>Test-writing behavior is one of the most reliable indicators of whether someone truly understands a feature.</p><p><strong>Vibe coding pattern:</strong></p><ul><li>Tests written after the fact, only to satisfy CI</li><li>Happy path coverage only</li><li>Tests that mirror the implementation rather than the behavior</li><li>“I asked AI to write the tests too” with no further review</li></ul><p><strong>Solid engineering pattern:</strong></p><ul><li>Tests written alongside or before the feature, especially for edge cases</li><li>Tests that describe <em>behavior</em>, not implementation details</li><li>Specific tests for the edge cases they thought about during building</li><li>When asked why a test exists, they can explain the real-world scenario it protects against</li></ul><p>A telling moment: ask an engineer to explain one of their tests to you in plain English. A solid engineer says <em>“this test makes sure that if the discount is over 100%, the user never gets charged a negative amount.”</em> A vibe coder says <em>“this test checks that the function returns the right value.”</em></p><p><strong>What to do:</strong> In code review, pick one test and ask: <em>“What real-world scenario does this protect against?”</em></p><h3>Signal 5: How They Talk About Tools vs. Fundamentals</h3><p>Listen to how engineers talk about their work in team discussions, architecture sessions, or casual conversation.</p><p><strong>Vibe coder framing:</strong></p><ul><li>Talks primarily about tools — which AI model is better, which editor is faster</li><li>Rarely references underlying concepts (event loop, rendering pipeline, memory management)</li><li>Treats AI output as ground truth rather than a starting point</li><li>Gets uncomfortable or defensive when asked to reason about something without using a tool</li></ul><p><strong>Solid engineer framing:</strong></p><ul><li>Uses tools as a means to an end, not the end itself</li><li>Connects AI output back to first principles — <em>“Cursor suggested this pattern, which makes sense because of how Vue’s reactivity system works”</em></li><li>Curious about <em>why</em> things work, not just <em>that</em> they work</li><li>Comfortable reasoning through a problem on a whiteboard or in conversation without needing to prompt anything</li></ul><p><strong>What to do:</strong> In your next architecture discussion or technical interview, ask a question that requires reasoning without tools. Not to trick anyone — just to see how they think.</p><h3>The Honest Complication: This Exists on a Spectrum</h3><p>Before you use this framework, one important caveat.</p><p>Every engineer — including your best ones — vibe codes sometimes. When you’re moving fast, debugging at 11pm, or building something outside your core domain, you accept AI output you don’t fully understand. That’s normal. That’s human.</p><p>The concern isn’t occasional vibe coding. It’s when it becomes the default mode. When an engineer consistently can’t explain their decisions, consistently misses edge cases, and consistently reaches for AI before thinking — that’s a pattern worth addressing.</p><p>And the right response isn’t punishment. It’s a conversation. Usually the engineer doesn’t realize it’s happening. The speed of AI tools creates a subtle trap: output arrives so fast that the natural pause where understanding used to form never happens.</p><p>Your job as a tech lead is to rebuild that pause — through the questions you ask in code review, the culture you set around debugging, and the signals you reinforce when someone demonstrates genuine understanding.</p><h3>A Simple Evaluation Framework</h3><p>Here’s a one-page summary you can use during reviews, 1:1s, or incident retrospectives:</p><p>SignalVibe CoderSolid Engineer<strong>PR explanation</strong>Describes what the code doesExplains why it’s structured that way<strong>Incident response</strong>Fixes the symptomFinds and fixes the root cause<strong>Questions asked</strong>Hands you the problemHands you their thinking<strong>Test quality</strong>Happy path, implementation-mirroringBehavior-driven, edge-case aware<strong>Tool relationship</strong>Tools are the answerTools accelerate their thinking</p><p>No single signal is definitive. But if you see three or more consistently pointing the same direction, you have a clear picture.</p><h3>What To Do About It</h3><p>If you’ve identified someone on your team who’s vibe coding heavily, here’s what works:</p><p><strong>1. Name it without blaming it.</strong> Have a direct but kind conversation. Most engineers are genuinely surprised when they realize this pattern has developed. Frame it as a skill to build, not a flaw to fix.</p><p><strong>2. Add friction in the right places.</strong> Require PR authors to leave a comment explaining any non-trivial architectural decision. Not every line — just the choices that weren’t obvious. This forces the understanding to happen before merge.</p><p><strong>3. Pair on a debugging session.</strong> Nothing rebuilds fundamentals faster than sitting next to someone experienced and working through a real production problem together. It’s not about watching — it’s about the thinking out loud that happens.</p><p><strong>4. Create space for fundamentals.</strong> If your team is moving so fast that nobody has time to understand what they’re building, that’s a process problem, not a people problem. Monthly fundamentals sessions, architecture discussions, or even a Slack channel for interesting bugs all help.</p><p><strong>5. Celebrate the right things.</strong> When someone finds a root cause nobody expected, when someone writes a test that catches a real edge case, when someone pushes back on an AI suggestion because they understood why it was wrong — make that visible. Culture is built one reinforced behavior at a time.</p><h3>The Bottom Line</h3><p>AI tools are not the problem. They’re genuinely one of the best things to happen to software engineering in years. But they’ve introduced a new failure mode that tech leads need to recognize: engineers who produce output without building understanding.</p><p>Your job isn’t to slow the team down. It’s to make sure that as your team moves faster, the understanding keeps pace with the output.</p><p>The engineers who will still be your best performers in five years aren’t the ones who prompt the fastest. They’re the ones who use every tool available — AI included — and still know exactly what’s running in their system and why.</p><p>That’s the difference between a vibe coder and a solid engineer. And now you know how to spot it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f98f14ed751" width="1" height="1" alt=""><hr><p><a href="https://medium.com/after-deploy/how-to-tell-if-your-engineers-are-vibe-coding-before-production-does-4f98f14ed751">How to Tell If Your Engineers Are Vibe Coding Before Production Does.</a> was originally published in <a href="https://medium.com/after-deploy">After Deploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Sentry Became the Most Honest Member of Our Engineering Team]]></title>
            <link>https://medium.com/after-deploy/how-sentry-became-the-most-honest-member-of-our-engineering-team-9dec1733a482?source=rss----f3ca401045bc---4</link>
            <guid isPermaLink="false">https://medium.com/p/9dec1733a482</guid>
            <category><![CDATA[sentry]]></category>
            <category><![CDATA[error-monitoring]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[engineering-culture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Davoud Aslani Fakour]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 14:07:42 GMT</pubDate>
            <atom:updated>2026-08-14T14:07:43.840Z</atom:updated>
            <content:encoded><![CDATA[<p><em>We added it, removed it, re-added it, fought with it, and finally learned to listen to it. Here’s the full story.</em></p><h3>It Started With a Single Commit</h3><p>Sentry implemented</p><p>That’s all the commit message said. No ticket number. No context. Just three words and a deploy flag.</p><p>At the time, we thought we were done. We’d integrated Sentry into Zoviz, the tool was running, errors would appear in the dashboard. Job done. Move on.</p><p>We were wrong. That commit was not the end of anything — it was the beginning of one of the most humbling, frustrating, and ultimately valuable engineering journeys our team has been through.</p><figure><img alt="An AI robot engineer monitors a Sentry dashboard showing 342 unhandled issues and 43.7k events, holding a mug reading “Errors don’t lie. I do.” — illustrating how Sentry became the most honest member of an engineering team." src="https://cdn-images-1.medium.com/max/1024/1*gBe2b-drCav4UuwOyoH0ig.png" /><figcaption>Deadlines pressure you to ship. Sentry shows you what shipping actually cost.</figcaption></figure><h3>Phase 1: The Chaos of “It’s Implemented”</h3><p>The first thing Sentry taught us was that we had no idea what was actually happening in our production environment.</p><p>Within days of the initial setup, the dashboard was on fire. Hundreds of issues. Noise everywhere. Errors from browser extensions, injected scripts, third-party SDKs we didn’t control, and — most embarrassingly — real bugs we’d shipped and never noticed.</p><p>Our first reaction was to turn down the volume. We started filtering. We committed core(sentry): filter error shown and core(sentry): remove check state mode for sentry — basically teaching Sentry to be quieter. To show us less.</p><p>Looking back, this was the wrong instinct. We were muting the alarm instead of understanding what was burning.</p><p>The noise problem got so bad that we actually removed Sentry entirely for a period. That commit exists in our history:</p><p>remove(main): remove sentry from project</p><p>We told ourselves we’d come back to it properly. And eventually, we did.</p><h3>Phase 2: Coming Back With a Plan</h3><p>When we re-integrated Sentry, we did it differently. Instead of just plugging it in and hoping for the best, we approached it like an engineering problem.</p><p><strong>First: we documented the noise.</strong></p><p>We created a sentry-issues document — a living file that tracked which errors were real, which were third-party noise, and which were known issues we hadn&#39;t prioritized yet. The commit history shows this clearly: add documentation for multiple Sentry issues, followed later by reorganize Sentry issue documentation for better tracking, and then clean up Sentry issue documentation and remove obsolete files.</p><p>That documentation cycle — create, reorganize, clean up — took months. But it was the foundation of everything that came after.</p><p><strong>Second: we built a proper noise filter.</strong></p><p>Not just “hide this error class.” A deliberate list of what we called our <strong>noise list</strong> — errors that were real in the browser sense but meaningless to us as a product team. Things like injected listener-hook crashes from browser extensions, which we eventually handled with a dedicated commit: add handler to ignore injected listener-hook crashes.</p><p>This is one of the most underrated Sentry skills: knowing what NOT to look at. Every team has legitimate noise. The question is whether you’ve deliberately decided to ignore it, or whether it’s just burying the things you should be watching.</p><h3>Phase 3: Sentry as a Feature, Not a Tool</h3><p>The shift that changed everything was when we stopped thinking of Sentry as a monitoring tool and started treating it as part of our feature development process.</p><p>Concretely, this meant:</p><p><strong>Integrating Sentry into payment flows.</strong></p><p>Payments are where silent failures hurt most. A user’s checkout fails, they don’t understand why, they leave — and you never know it happened. We added integrate Sentry for error tracking in Stripe element setup specifically because our express checkout flow had edge cases we couldn&#39;t reproduce locally. Sentry found them in production within 48 hours of the next deploy.</p><p>One specific bug: our checkout was using a token field where the updated Stripe flow expected a payment_id. This had been silently failing for a subset of users on specific payment methods. Sentry caught it. The fix was one line. The impact on conversion was real.</p><p><strong>Adding Sentry to authentication flows.</strong></p><p>Login failures are another category where silent errors kill user trust. We added Sentry reporting to both Google and Facebook login handlers after noticing drop-off we couldn’t explain. The errors showed up immediately — edge cases in the OAuth flow that only appeared for certain account configurations.</p><p>improve Google login error handling and Sentry reporting streamline Sentry initialization and enhance Facebook login error handling</p><p>These weren’t dramatic failures. They were quiet ones. The kind that lose you 2–3% of signups and you never know why.</p><p><strong>Exposing Sentry to plugins.</strong></p><p>As Zoviz grew, we built an HTML editor plugin — a separate context that ran partially outside our main Vue application. For a long time, errors in that plugin were invisible to us. We couldn’t see them in Sentry because the plugin didn’t have access to our Sentry instance.</p><p>expose Sentry API for html-editor-plugin and add root text detection in loaded assets</p><p>This one commit opened a window into a dark room. Errors we didn’t know existed started appearing. Several of them had been there for months.</p><h3>Phase 4: The Cleanup Sessions</h3><p>Once we had good data, we started running what we called <strong>Sentry cleanup sessions</strong> — dedicated time to work through the issue list, triage what was real, fix what we could, and deliberately close what wasn’t worth fixing.</p><p>conduct cleanup session to address high-noise Sentry issues</p><p>This sounds simple. It’s not. The hard part of cleanup sessions isn’t the fixing — it’s the deciding. For every issue, you have to answer: is this something users are actually experiencing? Is it affecting a critical path? Does the fix cost more than the problem?</p><p>We built a simple framework for this:</p><p><strong>P0 — Fix immediately:</strong> Payment flows, authentication, data loss, anything affecting a critical user action.</p><p><strong>P1 — Fix this sprint:</strong> Visible UI errors, broken features in secondary flows, anything affecting more than 1% of sessions.</p><p><strong>P2 — Track and watch:</strong> Edge cases, low-frequency errors, known third-party issues with no available fix.</p><p><strong>Noise — Close and document:</strong> Browser extension injections, known SDK quirks, errors we’ve consciously decided to ignore.</p><p>The discipline of running these sessions regularly — we do them every two weeks now — is what turned Sentry from a noisy dashboard into a reliable signal.</p><h3>Phase 5: Sentry as a Daily Habit</h3><p>The final evolution was making Sentry part of our daily routine, not just something we checked after incidents.</p><p>Every morning, one person on the team owns the Sentry dashboard. Not to fix everything — just to read it. To notice if something new appeared after yesterday’s deploy. To catch the issue before it becomes an incident.</p><p>We call this the Sentry owner rotation. It takes 5–10 minutes. It has caught things that would have taken days to surface through user reports.</p><p>The key insight: <strong>Sentry is only useful if you’re watching it before things go wrong.</strong> Most teams open Sentry when something is already on fire. By then, you’re in firefighting mode — stressed, rushed, not thinking clearly. If you’ve been watching it daily, you see the smoke before the fire.</p><h3>What the Commit History Actually Tells You</h3><p>Looking back at our Sentry commit history across Zoviz’s entire lifespan — from Sentry implemented to enhance Sentry error handling and telemetry safeguards — there&#39;s a clear arc:</p><p><strong>Naive implementation → overwhelming noise → removal → deliberate re-integration → documentation → integration into features → cleanup discipline → daily habit.</strong></p><p>Every team goes through some version of this arc. Most get stuck somewhere in the middle — usually at the “it’s too noisy” stage — and either mute it into uselessness or remove it entirely.</p><p>The teams that get real value from Sentry are the ones that push through the noise phase, build the discipline to triage regularly, and eventually make it part of how they think about shipping.</p><h3>The Practical Setup We Use Today</h3><p>For anyone who wants the concrete version:</p><p><strong>Configuration:</strong> We run Sentry on our Vue 3 / Nuxt frontend with a carefully maintained beforeSend filter that drops known noise categories before they ever hit the dashboard. The noise list is a living document that we review in every cleanup session.</p><p><strong>Tagging:</strong> Every deploy is tagged with a release identifier in Sentry. This means when a new error appears, we can immediately see which deploy introduced it — even if we don’t notice it until days later.</p><p><strong>Alerts:</strong> We have two alert levels. Immediate alerts (Slack DM) for any new error in payment or authentication flows. Daily digest for everything else.</p><p><strong>The rotation:</strong> One person owns Sentry for the week. Monday morning they do a full triage. Daily they do a quick scan. Friday they hand off with a brief summary.</p><p><strong>The cleanup session:</strong> Every two weeks, 45 minutes, the whole team. We work through the P0 and P1 list, close resolved issues, and update the noise documentation.</p><h3>The Honest Truth</h3><p>Sentry is not magic. It will not automatically make your production environment stable. It will not catch everything. It will, for a while, make things feel worse because you’ll see problems you didn’t know existed.</p><p>That discomfort is the point.</p><p>The errors were always there. Sentry just gives you the honesty to see them. What you do with that information is still entirely on you.</p><p>After years of working with it, here’s how I think about it: Sentry is the most honest member of your engineering team. It doesn’t soften feedback. It doesn’t skip issues because the sprint is busy. It doesn’t assume something is probably fine. It just shows you what’s actually happening in your product, every day, for every user.</p><p>Learning to listen to it — really listen, not just glance and close the tab — is one of the highest-leverage skills an engineering team can develop.</p><p><em>Next: I’ll share the specific Sentry configuration we use at Zoviz — including our noise filter setup, release tagging workflow, and the alert rules that have saved us the most time. Stay tuned.</em></p><p><strong>Tags:</strong> Sentry Software Engineering Vue Frontend Error Monitoring Engineering Culture</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9dec1733a482" width="1" height="1" alt=""><hr><p><a href="https://medium.com/after-deploy/how-sentry-became-the-most-honest-member-of-our-engineering-team-9dec1733a482">How Sentry Became the Most Honest Member of Our Engineering Team</a> was originally published in <a href="https://medium.com/after-deploy">After Deploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Firefighting Production Bugs. Build This Sentry System Instead.]]></title>
            <link>https://medium.com/after-deploy/stop-firefighting-production-bugs-build-this-sentry-system-instead-1a7f9cff0e62?source=rss----f3ca401045bc---4</link>
            <guid isPermaLink="false">https://medium.com/p/1a7f9cff0e62</guid>
            <category><![CDATA[sentry]]></category>
            <category><![CDATA[cursor]]></category>
            <category><![CDATA[vit]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[mcps]]></category>
            <dc:creator><![CDATA[Davoud Aslani Fakour]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 14:06:50 GMT</pubDate>
            <atom:updated>2026-08-14T14:06:51.970Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The follow-up to “How Sentry Became the Most Honest Member of Our Engineering Team.” This time: the actual code, the actual workflow, and how we connected Sentry to Cursor via MCP to catch issues directly — before they become incidents.</em></p><h3>Where We Left Off</h3><p>In the last post, I walked through our full Sentry journey — from a naive Sentry implemented commit to removing it entirely, to finally building the discipline to make it genuinely useful.</p><p>This post is the practical follow-up. The actual config we run. The noise filter logic. The breadcrumb setup that tells you <em>exactly</em> what a user did before something broke. The release tagging workflow. The alert rules that have saved us the most time.</p><p>And the part I’m most excited to share: how we connected Sentry to Cursor using the Sentry MCP server — so instead of copying error stacks into a chat window, our AI debugging context is live, structured, and already knows what broke.</p><p>Let’s get into it.</p><figure><img alt="A dark-themed MCP Debugging Workflow diagram showing 6 sequential steps: Capture &amp; Ingest (errors, logs, breadcrumbs via Sentry), Contextualize with MCP (pulls code, PRs, issues, feature flags), Analyze &amp; Detect (LLM + rules find root cause patterns), Prioritize &amp; Assign (ranked by impact and frequency), Debug with MCP (AI suggests fixes with code references), and Fix, Verify &amp; Learn (PR opened, tests added, postmortem captured). The MCP tooling ecosystem on the right lists GitHub, Sentry, Linea" src="https://cdn-images-1.medium.com/max/1024/1*5T9RwLQ3qBXwoK3h47eOcA.png" /><figcaption><em>Firefighting is reactive. This workflow is not.</em></figcaption></figure><h3>1. The Base Setup — @sentry/vue + Vite</h3><p>We run Vue 3 with Vite. Here’s the base initialization we use in src/main.ts:</p><pre>// src/main.ts<br>import * as Sentry from &#39;@sentry/vue&#39;<br>import { browserTracingIntegration, replayIntegration } from &#39;@sentry/vue&#39;<br>import { createApp } from &#39;vue&#39;<br>import App from &#39;./App.vue&#39;<br>import router from &#39;./router&#39;<br>const app = createApp(App)<br>Sentry.init({<br>  app,<br>  dsn: import.meta.env.VITE_SENTRY_DSN,<br>  environment: import.meta.env.VITE_APP_ENV,   // &#39;production&#39; | &#39;staging&#39; | &#39;development&#39;<br>  release: import.meta.env.VITE_APP_VERSION,   // injected at build time<br>  enabled: import.meta.env.VITE_APP_ENV === &#39;production&#39;,<br>  integrations: [<br>    browserTracingIntegration({ router }),<br>    replayIntegration({<br>      maskAllText: false,<br>      blockAllMedia: false,<br>    }),<br>  ],<br>  // Performance - capture 10% of transactions in production<br>  tracesSampleRate: 0.1,<br>  // Session Replay - 5% of sessions, 100% on error<br>  replaysSessionSampleRate: 0.05,<br>  replaysOnErrorSampleRate: 1.0,<br>  beforeSend(event) {<br>    return filterNoise(event)<br>  },<br>})<br>app.use(router)<br>app.mount(&#39;#app&#39;)</pre><p>A few things worth calling out:</p><p><strong>enabled: import.meta.env.VITE_APP_ENV === &#39;production&#39;</strong> — Sentry only runs in production. We wasted weeks early on debugging noise that turned out to be local development errors. Never again.</p><p><strong>release: import.meta.env.VITE_APP_VERSION</strong> — Injected at build time via Vite config (more on this below). It&#39;s the single most useful thing we added — lets you see exactly which deploy introduced an error.</p><p><strong>replaysOnErrorSampleRate: 1.0</strong> — Every session that produces an error gets a full replay. This alone has cut our debugging time in half for UI issues.</p><h3>2. The Noise Filter — beforeSend</h3><p>This is the function that made Sentry usable for us. Without it, the dashboard was overwhelming. With it, everything that reaches us is something we actually care about.</p><pre>// src/utils/sentry-filter.ts<br>import type { Event } from &#39;@sentry/vue&#39;<br>// Errors we have deliberately decided to ignore.<br>// Each entry is documented with WHY we ignore it.<br>const NOISE_PATTERNS: Array&lt;{ pattern: RegExp; reason: string }&gt; = [<br>  {<br>    pattern: /injected|chrome-extension|safari-extension|moz-extension/i,<br>    reason: &#39;Browser extension injection - not our code&#39;,<br>  },<br>  {<br>    pattern: /NetworkError|Failed to fetch|Load failed/i,<br>    reason: &#39;Network connectivity - handled in UI, not actionable&#39;,<br>  },<br>  {<br>    pattern: /ResizeObserver loop/i,<br>    reason: &#39;Known browser quirk - no user impact&#39;,<br>  },<br>  {<br>    pattern: /AbortError|The user aborted/i,<br>    reason: &#39;User-initiated navigation abort - expected behavior&#39;,<br>  },<br>  {<br>    pattern: /Script error/i,<br>    reason: &#39;Cross-origin script error - no actionable stack trace&#39;,<br>  },<br>]<br>export function filterNoise(event: Event): Event | null {<br>  const message = event.exception?.values?.[0]?.value ?? &#39;&#39;<br>  const stacktrace = JSON.stringify(event.exception?.values?.[0]?.stacktrace ?? &#39;&#39;)<br>  for (const { pattern } of NOISE_PATTERNS) {<br>    if (pattern.test(message) || pattern.test(stacktrace)) {<br>      return null // Drop this event - never reaches Sentry<br>    }<br>  }<br>  return event // Let it through<br>}</pre><p><strong>Why this structure matters:</strong> Each pattern is documented with a reason. Six months from now, when someone asks “why are we ignoring this error class?” — the answer is right there in the code. This is also what we review in every cleanup session.</p><p><strong>Where this is most useful:</strong> Any Vue 3 app with third-party integrations will have significant browser noise. Without a filter like this, your real errors drown in the irrelevant ones.</p><h3>3. Breadcrumbs — Knowing Exactly What the User Did Before It Broke</h3><p>This is the section most teams skip, and it’s the one that makes AI debugging actually work.</p><p>Sentry automatically captures some breadcrumbs — navigation events, console logs, network requests. But for critical user flows, you need to add your own. Custom breadcrumbs create a precise trail of user actions that leads directly to the error.</p><p>Here’s the reusable utility we use:</p><pre>// src/utils/sentry-breadcrumb.ts<br>import * as Sentry from &#39;@sentry/vue&#39;<br>// Call this at each meaningful step in a user flow<br>export function addFlowBreadcrumb(<br>  flow: string,<br>  step: string,<br>  data?: Record&lt;string, unknown&gt;<br>) {<br>  Sentry.addBreadcrumb({<br>    category: `flow.${flow}`,<br>    message: step,<br>    level: &#39;info&#39;,<br>    data,<br>  })<br>}</pre><p>Then use it inside any composable that handles a critical user action:</p><pre>// src/composables/useTrackedOperation.ts<br>import * as Sentry from &#39;@sentry/vue&#39;<br>import { addFlowBreadcrumb } from &#39;@/utils/sentry-breadcrumb&#39;<br>export function useTrackedOperation(flowName: string) {<br>  async function run&lt;T&gt;(<br>    stepName: string,<br>    operation: () =&gt; Promise&lt;T&gt;,<br>    context?: Record&lt;string, unknown&gt;<br>  ): Promise&lt;T&gt; {<br>    addFlowBreadcrumb(flowName, `${stepName}:started`, context)<br>    try {<br>      const result = await operation()<br>      addFlowBreadcrumb(flowName, `${stepName}:succeeded`, context)<br>      return result<br>    } catch (error) {<br>      Sentry.captureException(error, {<br>        tags: { flow: flowName, step: stepName },<br>        extra: { ...context },<br>      })<br>      addFlowBreadcrumb(flowName, `${stepName}:failed`, context)<br>      throw error<br>    }<br>  }<br>  return { run }<br>}</pre><p>Use it in any composable that wraps a critical async operation:</p><pre>// src/composables/useDataSubmit.ts<br>import { useTrackedOperation } from &#39;@/composables/useTrackedOperation&#39;<br>export function useDataSubmit() {<br>  const { run } = useTrackedOperation(&#39;data-submit&#39;)<br>  async function submitForm(formData: FormPayload) {<br>    return run(<br>      &#39;send-to-api&#39;,<br>      () =&gt; api.submitForm(formData),<br>      { formType: formData.type }<br>    )<br>  }<br>  return { submitForm }<br>}</pre><p>What this looks like in Sentry when something breaks:</p><p>Instead of just seeing:</p><pre>TypeError: Cannot read properties of undefined<br>  at useDataSubmit (composables/useDataSubmit.ts:14)</pre><p>You see the full breadcrumb trail:</p><pre>[info] flow.data-submit → send-to-api:started    { formType: &quot;contact&quot; }<br>[info] flow.data-submit → send-to-api:failed     { formType: &quot;contact&quot; }<br>[error] TypeError: Cannot read properties of undefined</pre><p>That trail tells you: the operation started, failed immediately on the API call, with a specific form type. No guessing which step broke. No manually reproducing the issue. The path is right there.</p><p><strong>Where breadcrumbs are most useful:</strong></p><ul><li>Multi-step user flows (onboarding, setup wizards, multi-page forms)</li><li>Async operations with multiple stages</li><li>Any flow where the error location alone doesn’t explain the cause</li><li>Anywhere you want AI to debug without needing follow-up questions</li></ul><p>The breadcrumb trail is exactly what Cursor reads when you use the MCP integration (covered in section 6). The richer the breadcrumbs, the less guesswork the AI needs.</p><h3>4. Release Tagging — Knowing Which Deploy Broke What</h3><p>This is the workflow that changed how we do post-deploy monitoring.</p><p>In vite.config.ts:</p><pre>// vite.config.ts<br>import { defineConfig } from &#39;vite&#39;<br>import vue from &#39;@vitejs/plugin-vue&#39;<br>import { sentryVitePlugin } from &#39;@sentry/vite-plugin&#39;<br>const APP_VERSION = `${process.env.npm_package_version}-${Date.now()}`<br>export default defineConfig({<br>  plugins: [<br>    vue(),<br>    sentryVitePlugin({<br>      org: process.env.SENTRY_ORG,<br>      project: process.env.SENTRY_PROJECT,<br>      authToken: process.env.SENTRY_AUTH_TOKEN,<br>      release: {<br>        name: APP_VERSION,<br>        // Upload source maps so stack traces show real file names<br>        // and line numbers, not minified code<br>        uploadLegacySourcemaps: {<br>          path: &#39;./dist&#39;,<br>          include: [&#39;./dist/assets&#39;],<br>          urlPrefix: &#39;~/assets&#39;,<br>        },<br>      },<br>    }),<br>  ],<br>  define: {<br>    &#39;import.meta.env.VITE_APP_VERSION&#39;: JSON.stringify(APP_VERSION),<br>  },<br>})</pre><p><strong>What this gives you:</strong> Every error in Sentry shows a release tag. When a new error appears, you can see immediately: was it introduced in the last deploy, or has it been there for weeks?</p><p><strong>Where this is most useful:</strong> Post-deploy monitoring. After every release, filter Sentry to “new issues in last 2 hours.” Without release tagging, finding that signal in the noise is nearly impossible.</p><h3>5. Critical Flow Monitoring — Structured Capture for High-Impact Actions</h3><p>Generic error tracking catches what escapes. Targeted tracking on the flows that matter most is what catches things <em>before</em> users report them.</p><p>The principle: any flow where a silent failure is invisible to you but immediately painful to the user deserves structured captureException with context — not just default unhandled error capture.</p><p>The useTrackedOperation composable from section 3 already handles this. The key addition is user context, which links every future error to a specific account:</p><pre>// src/composables/useSession.ts<br>import * as Sentry from &#39;@sentry/vue&#39;<br>export function useSession() {<br>  function identifyUser(user: { id: string; email?: string; role?: string }) {<br>    // Set user context - all subsequent errors are linked to this user<br>    Sentry.setUser({<br>      id: user.id,<br>      email: user.email,<br>      role: user.role,<br>    })<br>  }<br>  function clearUser() {<br>    Sentry.setUser(null)<br>  }<br>  return { identifyUser, clearUser }<br>}</pre><p>Call identifyUser after any successful authentication. From that point forward, every Sentry issue includes the user&#39;s ID, email, and role — which means when a critical flow breaks, you can reach out to the affected user directly, reproduce the issue with their exact account state, and verify the fix worked for them specifically.</p><p><strong>Where this is most useful:</strong> Any flow where a failure is invisible to you but painful to the user — form submissions, data exports, file uploads, background sync, third-party integrations. Anywhere the user experiences something going wrong that never reaches your support inbox.</p><h3>6. Alert Rules — What We Actually Get Paged For</h3><p>Most teams set up too many alerts and start ignoring all of them. We run two rules only.</p><p><strong>Rule 1 — Immediate alert (Slack DM to on-call):</strong></p><pre>IF new_issue = true<br>AND tags.flow IN [&#39;data-submit&#39;, &#39;user-auth&#39;, &#39;critical-export&#39;]<br>AND environment = &#39;production&#39;<br>THEN notify: #alerts-critical (Slack)</pre><p>This fires the moment a <em>new</em> error appears in a tagged critical flow. Not a spike in an existing error — a brand new one we’ve never seen before. That’s almost always a regression from the last deploy.</p><p><strong>Rule 2 — Daily digest (Slack channel, 9 AM):</strong></p><pre>IF issue.status = &#39;unresolved&#39;<br>AND environment = &#39;production&#39;<br>AND issue.first_seen &gt; 24h ago<br>THEN notify: #alerts-sentry-digest (Slack)</pre><p>New issues only, from the last 24 hours. No noise, no old issues.</p><p><strong>What we don’t alert on:</strong> Volume spikes in existing known issues, staging environment errors, or anything in our noise list. Alert fatigue is real. If every notification feels like a crisis, none of them will be treated as one.</p><h3>7. Debugging With Sentry MCP + Cursor — Direct Catching Inside Your Editor</h3><p>This is the workflow shift that made the biggest difference to our day-to-day debugging speed.</p><p>Previously, when a Sentry issue appeared:</p><ol><li>Open Sentry in browser</li><li>Find the issue</li><li>Copy the stack trace</li><li>Open Cursor</li><li>Paste the stack trace</li><li>Add context manually</li><li>Start debugging</li></ol><p>That’s 7 steps before you even start thinking about the fix. With Sentry MCP connected to Cursor, it’s 2 steps — and you’re catching issues <em>directly inside your editor</em>, with full context already loaded.</p><h3>Setting Up Sentry MCP in Cursor</h3><p>In your Cursor MCP config (~/.cursor/mcp.json):</p><pre>{<br>  &quot;mcpServers&quot;: {<br>    &quot;sentry&quot;: {<br>      &quot;command&quot;: &quot;npx&quot;,<br>      &quot;args&quot;: [&quot;-y&quot;, &quot;@sentry/mcp-server@latest&quot;],<br>      &quot;env&quot;: {<br>        &quot;SENTRY_AUTH_TOKEN&quot;: &quot;your-sentry-auth-token&quot;,<br>        &quot;SENTRY_ORG&quot;: &quot;your-org-slug&quot;,<br>        &quot;SENTRY_PROJECT&quot;: &quot;your-project-slug&quot;<br>      }<br>    }<br>  }<br>}</pre><p>Once running, Cursor has direct access to your Sentry issues — stack traces, breadcrumbs, replay data, tags, user context — without you copying anything.</p><h3>The Debugging Workflow</h3><p><strong>Step 1:</strong> Open Cursor, start a new chat.</p><p><strong>Step 2:</strong> Paste the Sentry issue ID and prompt:</p><blockquote><em>“Look up Sentry issue APP-1234. Read the full stack trace, breadcrumbs, tags, and replay data. Then find the relevant code in this project and tell me what’s causing it.”</em></blockquote><p>Cursor pulls the full issue via MCP — stack trace with real file names (because of source map upload), the breadcrumb trail, user context, and structured tags. Then it finds the relevant code in your open project and reasons about the root cause.</p><p><strong>Why breadcrumbs make this dramatically better:</strong></p><p>Without breadcrumbs, Cursor sees: TypeError: Cannot read properties of undefined at useDataSubmit.ts:14. It can guess, but it&#39;s guessing.</p><p>With breadcrumbs, Cursor sees:</p><pre>[info] flow.data-submit → send-to-api:started    { formType: &quot;contact&quot; }<br>[info] flow.data-submit → send-to-api:failed     { formType: &quot;contact&quot; }<br>[error] TypeError: Cannot read properties of undefined</pre><p>Now it knows the exact step, the exact input, and the exact failure point. In our experience this takes a debugging session from 30+ minutes to under 10 — not because the AI is smarter, but because the context it has is richer.</p><h3>8. The AI-Friendly Issue Log</h3><p>The final piece is our <strong>AI-friendly issue log</strong> — a structured format for tracking Sentry issues that works for humans <em>and</em> as live context for AI debugging sessions.</p><p>We keep this as docs/sentry-issues.md in our repo:</p><pre># Sentry Issue Log<br>Each issue follows this structure so AI tools can parse and reason about it.<br>---<br>## [OPEN] APP-1891 - DataSubmit: response undefined after network retry<br>- **First seen:** 2026-05-18<br>- **Frequency:** ~8 events/week<br>- **Flow:** data-submit &gt; send-to-api<br>- **Root cause:** Retry logic returns undefined instead of throwing on second failure<br>- **Fix status:** PR open - normalize retry return type<br>- **Related code:** `src/composables/useTrackedOperation.ts:31`<br>- **Sentry link:** https://sentry.io/...<br>---<br>## [RESOLVED] APP-1654 - UserAuth: login fails for accounts with no display name<br>- **First seen:** 2026-04-02<br>- **Resolved:** 2026-04-09<br>- **Root cause:** `user.displayName` was null for some OAuth providers; assumed string<br>- **Fix:** Added null coalescing - `displayName ?? &#39;Anonymous&#39;`<br>- **Related code:** `src/composables/useSession.ts:18`<br>- **Lesson:** Never assume third-party profile fields are populated<br>---<br>## Noise List (Deliberately Ignored)<br>| Pattern | Reason | Added |<br>|---|---|---|<br>| `injected listener-hook` | Browser extension crash | 2025-11-03 |<br>| `ResizeObserver loop` | Browser quirk, no user impact | 2025-09-14 |<br>| `Script error` | Cross-origin, no stack trace | 2025-08-20 |</pre><p><strong>Why this is AI-friendly:</strong> When you open a debugging session and say “check sentry-issues.md before looking at this new error” — the AI starts from your team’s accumulated knowledge, not from zero. It already knows which patterns you’ve seen, how you fixed them, and what you’ve deliberately ignored.</p><p><strong>Where this is most useful:</strong> Onboarding new engineers. docs/sentry-issues.md tells them more about how the product actually behaves in production than almost any other document in your repo.</p><h3>Putting It All Together</h3><pre>Deploy → release tagged automatically (Vite plugin + source maps uploaded)<br>         ↓<br>User triggers a flow<br>         ↓<br>Breadcrumbs record each step in real time<br>         ↓<br>Error occurs → beforeSend runs<br>         ↓<br>Noise? Drop it.   Real error? Send with full breadcrumb trail + user context.<br>         ↓<br>Critical flow tag? → Immediate Slack alert<br>Other error?      → Daily digest at 9 AM<br>         ↓<br>Sentry owner opens Cursor → pastes issue ID<br>         ↓<br>Cursor reads via MCP (stack trace + breadcrumbs + replay + tags)<br>         ↓<br>AI finds root cause directly in your codebase<br>         ↓<br>Fix shipped → issue resolved → sentry-issues.md updated</pre><p>The whole loop — from error in production to fix in review — now averages under 2 hours. Before this system, it was a full day or more.</p><h3>The Honest Caveats</h3><p><strong>It doesn’t replace good error handling.</strong> Sentry catches what escapes. If you swallow errors silently, Sentry and your breadcrumbs never see them.</p><p><strong>MCP requires a read-permission auth token.</strong> Be careful about who has access to your Cursor MCP config — it can read all your Sentry data including user context.</p><p><strong>Source map upload adds ~30 seconds to your build.</strong> Worth it completely, but worth knowing.</p><p><strong>Breadcrumbs only work where you add them.</strong> Start with your 3 most critical flows and expand. Don’t try to instrument everything at once.</p><p><strong>The issue log only works if you maintain it.</strong> Make it part of your cleanup session ritual — if you stop updating it, it becomes noise of its own kind.</p><p><a href="https://medium.com/@DavoudAslaniFakour/debug-front-vue-js-nuxt-js-in-production-2de06d4083fc">https://medium.com/@DavoudAslaniFakour/debug-front-vue-js-nuxt-js-in-production-2de06d4083fc</a></p><h3>What’s Next</h3><p>The next post will cover how we integrated CodeRabbit into our GitHub PR pipeline — and the specific patterns it catches in Vue 3 code that human reviewers consistently miss.</p><p>If you found this useful, start with the breadcrumb utility this week. Add it to one critical flow, deploy, and watch the next Sentry issue that comes from that flow. The difference in debugging clarity is immediate.</p><p><em>Questions about the MCP setup or the breadcrumb pattern? Leave a comment — I read all of them.</em></p><p><strong>Tags:</strong> Sentry Vue 3 Vite Error Monitoring Cursor MCP AI Debugging Software Engineering</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a7f9cff0e62" width="1" height="1" alt=""><hr><p><a href="https://medium.com/after-deploy/stop-firefighting-production-bugs-build-this-sentry-system-instead-1a7f9cff0e62">Stop Firefighting Production Bugs. Build This Sentry System Instead.</a> was originally published in <a href="https://medium.com/after-deploy">After Deploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>