The one with PWA support
This release includes includes support for wiring a headless application into the M2 stack.
Benefits:
- Full M2 Backend stack: PHP, Mysql, MailHog, BlackFire, ElasticSearch, Varnish, Reddis, RabbitMQ etc
- NodeJS, PM2 -> with all requests going through the M2 stack as they would in production
- BE developers no longer need ANY tools installed on their machines
- Easily debug/inovate on things that require both the M2 backend + the PWA
- production-critical things like Varnish can be fully tested E2E
Configuration
Since (in many cases) the headless application will be in a separate repo, the initial wf2 support requires a tiny bit of configuration - this may be removed/simplifed in the future.
Before:
recipe: M2
domains: [ example.m2 ]After:
recipe: M2
domains: [ example.m2 ]
options:
services:
pwa:
domains: [ example.pwa, test.ngrok.io ]
src_dir: /users/shane/pwa
dockerfile: /users/shane/pwa/wf2/DockerfileThis assumes that the PWA has a Dockerfile and knows how to build/serve itself.