Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48983

How to configure Ionic for serving PWA from subdirectory, but Android/iOS from root?

$
0
0

I’m trying to configure my Ionic React app to serve the PWA from a subdirectory without affecting the iOS/Android apps.

To serve the PWA from a subdirectory, in package.json, I can change homepage: "/"," to homepage: “subdirectory”,`; then, if I build the PWA, the URLs will be correct.

However, with homepage: "subdirectory",, if I build an Android or Ionic app, I get stuck on the splash screen because it can’t find any of the files.

How can I tell Ionic React that I want to use a different homepage value only for the PWA?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48983

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>