Reputation: 312
How to serve the dist folder generated from ng-build with sails to be the front-end of your application along with the backend api generated by sails ?
Upvotes: 2
Views: 379
Reputation: 312
well i managed to get this work, just put this for anyone else wondering
In config/routes.js edit:
module.exports.routes = {
'/': {
view: 'index.html'
}
};
then copy your dist folder content from angular ng build --prod
to the sails assets folder, then sails lift
Upvotes: 2