backend fixes
This commit is contained in:
18
backend/.dockerignore
Normal file
18
backend/.dockerignore
Normal file
@@ -0,0 +1,18 @@
|
||||
node_modules
|
||||
.git
|
||||
.gitignore
|
||||
README.md
|
||||
.env
|
||||
.nyc_output
|
||||
coverage
|
||||
.coverage
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
.DS_Store
|
||||
.vscode
|
||||
.idea
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
5
backend/.npmrc
Normal file
5
backend/.npmrc
Normal file
@@ -0,0 +1,5 @@
|
||||
# Suppress funding messages
|
||||
fund=false
|
||||
|
||||
# Suppress audit warnings during install (still run manually with npm audit)
|
||||
audit=false
|
||||
@@ -7,7 +7,7 @@ WORKDIR /app
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install --only=production
|
||||
RUN npm install --only=production --silent
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
@@ -15,7 +15,7 @@ const applicationRoutes = require('./routes/applications');
|
||||
const weatherRoutes = require('./routes/weather');
|
||||
const adminRoutes = require('./routes/admin');
|
||||
|
||||
const errorHandler = require('./middleware/errorHandler');
|
||||
const { errorHandler } = require('./middleware/errorHandler');
|
||||
const { authenticateToken } = require('./middleware/auth');
|
||||
|
||||
const app = express();
|
||||
|
||||
Reference in New Issue
Block a user