Skip to content

Instantly share code, notes, and snippets.

@gaearon
Created November 8, 2019 20:15
  • Star 67 You must be signed in to star a gist
  • Fork 16 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gaearon/4e61fc0a4d451fd36d908f8b8c36bbb5 to your computer and use it in GitHub Desktop.
const express = require('express');
const app = express();
// Application
app.get('/', function(req, res) {
if (process.env.NODE_ENV === 'development') {
for (var key in require.cache) {
delete require.cache[key];
}
}
require('./handler')(req, res);
});
@ivandelvaller
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment