Skip to content

Commit

Permalink
fix: node path, node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
gitfrosh committed Apr 15, 2024
1 parent b1a2ce2 commit b5acb50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
# Define Node versions to run CI/CD on
strategy:
matrix:
node-version: [18.x, 20.x, 21.x]
node-version: [21.x]

steps:
# Checkout project
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x, 21.x]
node-version: [21.x]

steps:
# Checkout project
Expand Down
4 changes: 2 additions & 2 deletions backend/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ app.use((req, res, next) => {
}
});

app.use('/v2/', apiLimiter);
app.use('/v2/', apiLimiter);
app.use('/v2', apiRoutes);
app.use('/auth', authRoutes);

// Handles React frontend requests
app.get('*', (req, res) => {
res.sendFile(path.join(__dirname + '/__BUILD/index.html'));
res.sendFile(path.join(__dirname + '/../__BUILD/index.html'));
});

async function start() {
Expand Down

0 comments on commit b5acb50

Please sign in to comment.