| Command | Result |
|---|---|
npm run deploy | Deploys dist to the linked Netlify site |
npm run deploy -- --host=firebase | Deploys dist to Firebase Hosting |
npm run deploy -- --host=none | Leaves dist ready for another static host |
Use the first command for Netlify. Choose one of the other commands only if you prefer another host.
Optional integrations
The standard deployment includes Ordio's core ordering features and does not request payment or WhatsApp credentials. Add --providers= only when an optional integration is ready.
npm run deploy -- --providers=stripe
npm run deploy -- --providers=paypal
npm run deploy -- --providers=paystack
npm run deploy -- --providers=yoco,whatsapp
npm run deploy -- --host=firebase --providers=stripe
npm run deploy -- --host=none --providers=whatsappAllowed values are yoco, stripe, paypal, paystack and whatsapp. Omit the option when no optional integration is required. WhatsApp secret prompts appear only when the command includes --providers=whatsapp.
Before deploying
.firebaserccontains the intended Firebase project ID.env.productioncontains the current HTTPS host addressfunctions/.envcontains the website address- Both environment validation commands pass
- The chosen host has been created or linked
- Optional provider sandbox testing is complete
After deploying
Add the deployed hostname to Firebase Authentication Authorized domains. Open /admin, sign in, place a manual order and confirm it appears under Orders.
If publishing fails, fix or reconnect the hosting account and run the same command again. Do not create the administrator again.