shopware / fastly-meta
A meta package providing recipes for Fastly
Installs: 11 264
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 11
Forks: 1
Open Issues: 0
Type:metapackage
Requires
- shopware/core: >=6.7.0.0
- shopware/deployment-helper: *
README
A Composer meta package that streamlines the integration of Fastly as the CDN layer for Shopware. It automates the deployment and management of Fastly VCL (Varnish Configuration Language) snippets and ensures best-practice Shopware CDN cache handling in scalable, modern shop setups.
- Performance: Fastly caches HTTP responses at edge locations closest to your customers, reducing latency and load on your servers.
- Resource Savings: Cache hits at the edge reduce backend requests and lower cloud infrastructure demands.
- Modern Caching: Fastly replaces local Redis cache use for HTTP caching, resulting in more scalable and reliable storefront performance.
This is not an official Fastly project but a Shopware-specific implementation.
Install
composer require shopware/fastly-meta
Setup
-
Set required environment variables:
FASTLY_API_KEY
— Your Fastly API keyFASTLY_SERVICE_ID
— The Fastly Service ID
-
Integrate with your deployment process:
- If using Shopware Deployment Helper, the Fastly meta package will enable auto-deployment of Fastly VCL snippets.
-
Enable Fastly for your Shopware project:
- Push your updated code and configuration containing the meta package and Fastly env variables to your environment.
- Fastly CDN will be integrated for HTTP caching.
Usage
Once set up, VCL snippets are managed automatically during your deployment process. You can manage Fastly snippets manually with Deployment Helper CLI commands:
# List deployed VCL snippets ./vendor/bin/shopware-deployment-helper fastly:snippet:list # Remove a VCL snippet by name ./vendor/bin/shopware-deployment-helper fastly:snippet:remove
Related Documentation
More info is available at Shopware Fastly Integration Guide, Shopware Deployment Helper, and Shopware PaaS Fastly Setup.