title: SailsJs self is not defined in production.min.js
body: <p>I created a small Application using SailsJs Framework v1.2.3. </p>
  
  <p>There is no issue in debug mode (sails lift). However when I lift the solution in production, the layout is displayed as well as pages with pure text (e.g. default FAQ page) but login page cannot be rendered (I still see the layout). My production is on port 80 at the moment as I'm trying to have a fully working production on my local machine before deploying it.</p>
  
  <p>The browser console has the following error: </p>
  
  <blockquote>
    <p>production.min.js:1 Uncaught ReferenceError: self is not defined
      at production.min.js:1
      at production.min.js:1</p>
  </blockquote>
  
  <p>I'm using the following dependencies in my project, the rest is from the sails new project WebApp option.</p>
  
  <pre><code>"dependencies": {
      "@sailshq/connect-redis": "^3.2.1",
      "@sailshq/lodash": "^3.10.3",
      "@sailshq/socket.io-redis": "^5.2.0",
      "chart.js": "^2.9.3",
      "csv-parser": "^2.3.2",
      "sails": "^1.2.3",
      "sails-hook-apianalytics": "^2.0.3",
      "sails-hook-organics": "^0.16.0",
      "sails-hook-orm": "^2.1.1",
      "sails-hook-sockets": "^2.0.0",
      "sails-hook-uploads": "^0.4.3"
    },
  </code></pre>
  
  <p>Anyone could help me understanding what is wrong?</p>