szalishchuk / generator-spa

Yeoman generator for fast Single Page Application prototyping with PhoneGap integration.
MIT License
4 stars 1 forks source link

webserver configuration #20

Closed szalishchuk closed 10 years ago

szalishchuk commented 10 years ago

We have non functional client side routing, since node's webserver does not return index.html if we call unknown route, and with single page apps it's always the case. Webserver is never aware of the declared routes on the client side.

We need to fix this, I assume migration to a more functional grunt webrunner should be our shot. Here is the discussion on grunt-contrib-connect repository regarding the matter.

szalishchuk commented 10 years ago

Done.

From now on any route accesses through connect's webserver will be served with index.html. That way the front-end part will be responsible for handling the 404 errors.