Configuration ๐ง
SSR
- Set .env
APP_CLIENT_MODE=srr
- Set client url
APP_CLIENT_URL
and apiAPP_URL
For start production ssr server run yarn ssr
/ npm run ssr
SPA (default setup)
- Set .env
APP_CLIENT_MODE=spa
- Set same client url
APP_CLIENT_URL
and apiAPP_URL
For production build run yarn build-spa
/ npm run build-spa
To see production version run php artisan serve
Development in SPA
- Setup SPA
- Run
yarn dev
/npm run dev