Skip to content

Commit

Permalink
compress and urlencode
Browse files Browse the repository at this point in the history
  • Loading branch information
ebubae committed Nov 8, 2024
1 parent 2c04ad9 commit 428f31e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ import './shared/utils/wrapConsole';

const app = express();

// app.set('view engine', 'jade');
app.use(express.json());
// app.use(express.json({ limit: '50mb' }));
// app.use(express.urlencoded({ extended: false, limit: '50mb' }));
// app.use(compression());
app.use(compression());
app.use(express.json({ limit: '50mb' }));
app.use(express.urlencoded({ extended: true, limit: '50mb' }));

if (process.env.NODE_ENV === 'development') {
app.use(morgan('dev'));
Expand Down

0 comments on commit 428f31e

Please sign in to comment.