iron-meteor / iron-router

A client and server side router designed specifically for Meteor.
MIT License
1.98k stars 413 forks source link

iron router error in PRODUCTION but working localhost #1585

Closed irshad-platalytics closed 7 years ago

irshad-platalytics commented 7 years ago

I am facing issue on Production but working fine locally.

iron:router Organize your Meteor application.

Router.route('/', function () { this.render('Home', { data: function () { return Items.findOne({_id: this.params._id}); } }); });

Check it out on Github: https://github.com/eventedmind/iron-router

And check out the new Guide: https://iron-meteor.github.io/iron-router

Can anyone guide to fix it?

chrisbutler commented 7 years ago

try running your app locally with the --production flag and checking the console for errors