Search code examples
meteoriron-router

Meteor: How to serve a static html file


Im using Meteor with IRON router and it's working great for dynamic files. But I have one statis legend.html file which I want to serve. I placed it in the public folder, but I get the error that the file can't be found.

As it has been generated from word, I'm unable to use a template as wrapper.

What is the trick?


Solution

  • put the static html-file in public folder, exclude /public from the url:

    http://yourdomain.com/yourfile.html

    not

    http://yourdomain.com/public/yourfile.html