<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: korenkaplan</title>
    <description>The latest articles on DEV Community by korenkaplan (@korenkaplan).</description>
    <link>https://dev.to/korenkaplan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1144666%2F2c144149-80da-42fd-b9c6-66e47eb350d5.png</url>
      <title>DEV Community: korenkaplan</title>
      <link>https://dev.to/korenkaplan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/korenkaplan"/>
    <language>en</language>
    <item>
      <title>Deployment Crush HELP Please</title>
      <dc:creator>korenkaplan</dc:creator>
      <pubDate>Wed, 23 Aug 2023 13:25:25 +0000</pubDate>
      <link>https://dev.to/korenkaplan/deployment-crush-help-please-2fci</link>
      <guid>https://dev.to/korenkaplan/deployment-crush-help-please-2fci</guid>
      <description>&lt;p&gt;my app works perfect on development conneting to the mongodb atlas, but when trying to deploy I get an error. After isolation Testing I found out that what's causing the crash is the following line:&lt;br&gt;
imports:[MongooseModule.forFeature([{name:Transaction.name,schema:TransactionSchema}])]. Its not happening on a spesific module its for every module I import the Mongoose module.&lt;/p&gt;

&lt;p&gt;Again on development it works fine only on production it fail to deploy. The enviorment variables are set correctly on production and the connection is in the app module:&lt;br&gt;
MongooseModule.forRoot(mongodb+srv://${process.env.MONGO_USER}:${process.env.MONGO_PASSWORD}${process.env.MONGO_PATH},{dbName: process.env.DB_NAME}),&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
