vendredi 5 mars 2021

Ionic capacitor web documents

I am having problems disploying the website on a web server.

For that I run the following command

ionic build

Then I copy what is in the build folder to the web server

enter image description here

But it only shows me the url index.html. When I upload all documents to the web server in the index page, I click a button to redirect me to a specific url, like / login, it can’t find the page.

How can I build all urls and not only the index page?

This is capacitor.config.json data

{
  "appId": "io.ionic.starter",
  "appName": "CallServices",
  "bundledWebRuntime": false,
  "npmClient": "npm",
  "webDir": "build",
  "linuxAndroidStudioPath": "/home/julian/bin/android-studio/bin/studio.sh",
  "plugins": {
    "SplashScreen": {
      "launchShowDuration": 0
    }
  },
  "cordova": {}
  
}

Thanks in advance




Aucun commentaire:

Enregistrer un commentaire