Marketing + legal website built with React, Vite, and Tailwind CSS.
Copy .env.example to .env and set:
VITE_PADDLE_ENV=production
VITE_PADDLE_CLIENT_TOKEN=live_xxx
VITE_PADDLE_PRICE_ID=pri_xxxnpm install
npm run devnpm run build- This repository is connected to Azure Static Web Apps through GitHub Actions.
- Deployment workflow file:
.github/workflows/azure-static-web-apps-polite-bay-06c45e903.yml
- React Router refresh handling is configured in:
public/staticwebapp.config.json
- API functions are in:
api/
Set these app settings in Azure Static Web Apps:
PADDLE_API_KEY=pdl_live_xxx
PADDLE_WEBHOOK_SECRET=pdl_ntfset_xxx
PADDLE_LIFETIME_PRICE_ID=pri_xxx
COSMOS_CONNECTION_STRING=AccountEndpoint=https://<account>.documents.azure.com:443/;AccountKey=<key>;
COSMOS_DB_NAME=DualPOS
COSMOS_CONTAINER_NAME=licenses
SUPPORT_EMAIL=support@abiad.systems
WEBSITE_URL=https://abiad.systems
SMTP_HOST=smtp.yourprovider.com
SMTP_PORT=587
SMTP_USER=your_smtp_user
SMTP_PASS=your_smtp_password
SMTP_FROM=support@abiad.systems
CORS_ALLOWED_ORIGINS=https://abiad.systems,https://www.abiad.systemsLegacy Cosmos variables are still supported if needed:
COSMOS_ENDPOINT=
COSMOS_KEY=
COSMOS_DATABASE=
COSMOS_CONTAINER=Paddle webhook URL:
https://abiad.systems/api/licenses/webhook/paddle
Default production URL: