Laravel 12 + Inertia React marketing site for https://asaasvantage.com.
composer install
cp .env.example .env
php artisan key:generate
npm install
npm run buildPoint the web server document root at marketing/public for asaasvantage.com.
| Variable | Purpose |
|---|---|
APP_URL |
This site (https://asaasvantage.com) |
PLATFORM_URL / VITE_PLATFORM_URL |
Central platform (https://platform.asaasvantage.com) for Sign in / Get started and marketing APIs |
VITE_PLATFORM_URL is baked in at build time — always run npm run build after changing it.
APP_ENV=production
APP_DEBUG=false
APP_URL=https://asaasvantage.com
PLATFORM_URL=https://platform.asaasvantage.com
VITE_PLATFORM_URL=https://platform.asaasvantage.com
composer install --no-dev --optimize-autoloader
php artisan config:cache
php artisan route:cache
php artisan view:cache
npm ci && npm run buildOn the central platform (asaas), set MARKETING_URL=https://asaasvantage.com so CORS allows the products page to load registerable apps. Then:
php artisan apps:sync-product-urls
php artisan db:seed --class=ApplicationClientSeedercomposer run devThat starts php artisan serve (http://asaas.local:8001) and Vite (:5173) together. Open the site with the port. To run them separately:
php artisan serve
npm run dev- Sign in →
${PLATFORM_URL}/login - Get started →
${PLATFORM_URL}/get-started/{applicationCode} - Contact form →
POST ${PLATFORM_URL}/api/v1/marketing/contact - Products / pricing / nav → website server fetches
GET ${PLATFORM_URL}/api/v1/marketing/products(cached) and shares it to Inertia. Product switching on Pricing uses same-originGET /api/catalog/products/{slug}.