Build and Deploy
Todo
Sites
In production (NODE_ENV=production) sites are cached forever, so to clear the cache you need to clear the craft cache and do a fresh build or delete dist/sites.json.
Staging
In staging or testing environments, it can be useful to protect the frontend application with a password. You can configure this using the following environment variables within /craft/.env:
env
BASIC_AUTH_USER=your-username
BASIC_AUTH_PASSWORD=your-password