Deploy Ionic onto Netlify

  • Site Configuration:
    • Runtime: Not Set
    • Build Command: ionic build --prod
    • Publish Directory: www/
  • install the ionic cli so it installs when running the build
    • npm install --save-dev @ionic/cli

Page not Found

"assets": [
	  {
		"glob": "**/*",
		"input": "src/assets",
		"output": "assets"
	  },
	  {
		"glob": "**/*.svg",
		"input": "node_modules/ionicons/dist/ionicons/svg",
		"output": "./svg"
	  },
	  "src/_redirects"
	],
  • create a _redirects file in the src folder with the following content:
/* /index.html 200

📇 Additional Metadata

  • 🗂 Type::note
  • 🏷️ Tags::
  • 📡 Status::🌲