. server/lib/routes/static.js:
: 9
app.use(config.server.staticUrl, express.static(config.server.distFolder));
What it is: if any HTTP request is started from config.server.staticUrl(whitch is /staticfor this application), the server tries to respond with the resource stored in the folder config.server.distFolder(which is the / dist client for this application).
For example: when you request this url /static/angular.js, the middleware tries to find the angular.jsfile in client/dist/. Because the directory client/distmaps to a URL starting with /staticmiddleware.
source
share