Ionic-app-scripts: Failed to load config.xml on production build for browser

Created on 3 Mar 2017  路  4Comments  路  Source: ionic-team/ionic-app-scripts

Short description of the problem:

We build our app for browser and production doing this ionic build browser --prod we copy the files from platforms/browser/www to our webserver. We mapp the webserver app not to the root but to a subfolder.
So the app is deployed something like that:

http://192.168.8.1/subfolder/index.html

On open the app from browser we got this error:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://192.168.8.1/config.xml

image

What behavior are you expecting?

The app is searching the config.xml file from root but this is not this case, it is deployed under subfolder where the whole app is.

I think it could also be possible the config.xml should not be included and also not be loaded? It does not make sense have a file with <allow-navigation href="http://192.168.8.121:8100" /> Could this be a potentially security problem?

Which @ionic/app-scripts version are you using?
1.1.4

All 4 comments

We don't support the browser platform currently.

Thanks,
Dan

Hooo man, very bad to know that. What about that blog post about PWA?

I'm intersted in it too

@bruno-barros,

We'll have a better PWA story soon.

Thanks,
Dan

Was this page helpful?
0 / 5 - 0 ratings