Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
ui-middleware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
OX App Suite
Core
ui-middleware
Commits
e998d9d8
Commit
e998d9d8
authored
3 years ago
by
richard.petersen
Committed by
julian.baeume
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix imports
parent
7c9a5986
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/createApp.js
+1
-3
1 addition, 3 deletions
src/createApp.js
src/index.js
+2
-2
2 additions, 2 deletions
src/index.js
src/logger.js
+4
-0
4 additions, 0 deletions
src/logger.js
with
7 additions
and
5 deletions
src/createApp.js
+
1
−
3
View file @
e998d9d8
...
...
@@ -5,10 +5,8 @@ import express from 'express'
// Helmet helps you secure your Express app by setting various HTTP headers
import
helmet
from
'
helmet
'
// Very low overhead Node.js logger. Logs in json use pino-pretty for dev.
import
Logger
from
'
pino
'
// Fastest HTTP logger for Node.js in town
import
{
logger
}
from
'
./logger.js
'
import
pinoHttp
from
'
pino-http
'
// Readiness and liveness checks middleware
import
health
from
'
@cloudnative/health-connect
'
...
...
This diff is collapsed.
Click to expand it.
src/index.js
+
2
−
2
View file @
e998d9d8
// Add env vars from files
// Note: actual env vars supersede .env file and .env file supersedes .env.defaults file
import
{
config
}
from
'
dotenv-defaults
'
import
{
logger
}
from
'
pino
'
import
{
createApp
}
from
'
./createApp
'
import
{
logger
}
from
'
./logger.js
'
import
{
createApp
}
from
'
./createApp
.js
'
config
()
...
...
This diff is collapsed.
Click to expand it.
src/logger.js
0 → 100644
+
4
−
0
View file @
e998d9d8
// Very low overhead Node.js logger. Logs in json use pino-pretty for dev.
import
Logger
from
'
pino
'
export
const
logger
=
new
Logger
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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