Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
feat(server): use API_PREFIX env var for api prefix
Browse files Browse the repository at this point in the history
feat(server): use API_PREFIX env var for api prefix
  • Loading branch information
Metnew committed Dec 5, 2017
1 parent ba56d6d commit 00ff85c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default (app: express$Application): express$Application => {
// Add global middlewares
addMiddlewares(app)
// Add API
app.use(process.env.BASE_API, API)
app.use(process.env.API_PREFIX, API)
// Add SSR
app.use(SSR)
return app
Expand Down

0 comments on commit 00ff85c

Please sign in to comment.