Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

ivandelvaller commented Apr 7, 2020

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.