Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kotahi
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Omo Oaiya
Kotahi
Commits
bc970a28
Commit
bc970a28
authored
4 years ago
by
Jure
Browse files
Options
Downloads
Patches
Plain Diff
feat: add compression to server
parent
d76382de
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/app.js
+2
-0
2 additions, 0 deletions
server/app.js
with
2 additions
and
0 deletions
server/app.js
+
2
−
0
View file @
bc970a28
...
...
@@ -14,6 +14,7 @@ const passport = require('passport')
const
logger
=
require
(
'
@pubsweet/logger
'
)
const
STATUS
=
require
(
'
http-status-codes
'
)
const
registerComponents
=
require
(
'
pubsweet-server/src/register-components
'
)
// TODO: Fix import
const
compression
=
require
(
'
compression
'
)
// Wax Collab requirements
const
WebSocket
=
require
(
'
ws
'
)
...
...
@@ -24,6 +25,7 @@ const gqlApi = require('./graphql')
const
configureApp
=
app
=>
{
const
models
=
require
(
'
@pubsweet/models
'
)
const
authsome
=
require
(
'
pubsweet-server/src/helpers/authsome
'
)
// TODO: Fix import
app
.
use
(
compression
())
app
.
locals
.
models
=
models
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment