Polymer / pwa-starter-kit

Starter templates for building full-featured Progressive Web Apps from web components.
https://pwa-starter-kit.polymer-project.org
2.36k stars 431 forks source link

prpl-server giving Not found 404 errors on fetched local resource #353

Closed jconlon closed 5 years ago

jconlon commented 5 years ago

Problem fetching local files when previewing prpl-server

Context

Setup

Also same problem if I just try a HTTP Get to http://127.0.0.1:8080/data/schema/GenericEntity.avsc

keanulee commented 5 years ago

The file would be served at http://127.0.0.1:8080/es5-bundled/data/schema/GenericEntity.avsc (note the /es5-bundled/ part). prpl-server modifies the <base> tag in index.html, and all assets will be served under the build name.

jconlon commented 5 years ago

Thanks for the clue... I was using a path like:

/data/schema/GenericEntity.avsc

and changed it to:

data/schema/GenericEntity.avsc

Which now works for dev, previewing the server and when it is deployed.