Polymer / shop

The Shop app
https://shop.polymer-project.org/
986 stars 494 forks source link

Showing project folder structure on local if file is not found in polymer project. #168

Closed mayakharat closed 6 years ago

mayakharat commented 6 years ago

When I navigate "https://shop.polymer-project.org/unknown.txt", I am getting error "not found". But when i do the same in my local, I am getting error "ENOENT: no such file or directory, stat 'D:\user_directory\Polymer\ShopApp\unknown.txt". My requirement is to not to show my folder structure and show only "not found" error

error2

keanulee commented 6 years ago

What local web server are you using? If you're using polymer serve, that's a development server so showing directory structure is expected. We use prpl-server for deployment which doesn't show directory structure.