<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://logicwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Prepare_Node_App_for_Production</id>
		<title>Prepare Node App for Production - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://logicwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Prepare_Node_App_for_Production"/>
		<link rel="alternate" type="text/html" href="https://logicwiki.co.uk/index.php?title=Prepare_Node_App_for_Production&amp;action=history"/>
		<updated>2026-04-17T22:26:59Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>https://logicwiki.co.uk/index.php?title=Prepare_Node_App_for_Production&amp;diff=1673&amp;oldid=prev</id>
		<title>AliIybar: Created page with &quot;Category:Node.js  == Installations ==  npm i helmet  npm i compression == Setting Up == in startup folder add prod.js file. All production related codes will go here &lt;pre...&quot;</title>
		<link rel="alternate" type="text/html" href="https://logicwiki.co.uk/index.php?title=Prepare_Node_App_for_Production&amp;diff=1673&amp;oldid=prev"/>
				<updated>2018-11-09T15:46:25Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/Category:Node.js&quot; title=&quot;Category:Node.js&quot;&gt;Category:Node.js&lt;/a&gt;  == Installations ==  npm i helmet  npm i compression == Setting Up == in startup folder add prod.js file. All production related codes will go here &amp;lt;pre...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Node.js]]&lt;br /&gt;
&lt;br /&gt;
== Installations ==&lt;br /&gt;
 npm i helmet&lt;br /&gt;
 npm i compression&lt;br /&gt;
== Setting Up ==&lt;br /&gt;
in startup folder add prod.js file. All production related codes will go here&lt;br /&gt;
&amp;lt;pre class=&amp;quot;brush:js;&amp;quot;&amp;gt;&lt;br /&gt;
 const helmet = require('helmet');&lt;br /&gt;
 const compression = require('compression');&lt;br /&gt;
&lt;br /&gt;
 module.exports = function(app) {&lt;br /&gt;
   app.use(helmet());&lt;br /&gt;
   app.use(compression());&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and in index module add this &lt;br /&gt;
 require('./startup/prod')(app);&lt;br /&gt;
it can be put in environment == production check.&lt;/div&gt;</summary>
		<author><name>AliIybar</name></author>	</entry>

	</feed>