diff --git a/.env.example.dev b/.env.example.dev index 848aeb8..3c5f387 100644 --- a/.env.example.dev +++ b/.env.example.dev @@ -4,6 +4,9 @@ # Application ID CRAFT_APP_ID= +# Security Key +CRAFT_SECURITY_KEY= + # Environment CRAFT_ENVIRONMENT=dev @@ -17,18 +20,15 @@ CRAFT_DB_PASSWORD= CRAFT_DB_SCHEMA=public CRAFT_DB_TABLE_PREFIX= -# General -CRAFT_SECURITY_KEY= -CRAFT_DEV_MODE= -CRAFT_ALLOW_ADMIN_CHANGES= -CRAFT_DISALLOW_ROBOTS= - # Site -CRAFT_IS_SYSTEM_LIVE= CRAFT_SITE_NAME= CRAFT_SYSTEM_EMAIL= CRAFT_TEST_TO_EMAIL_ADDRESS= -CRSFT_ALLOW_UPDATES= +# CRAFT_IS_SYSTEM_LIVE= +# CRAFT_DEV_MODE= +# CRAFT_ALLOW_ADMIN_CHANGES= +# CRAFT_ALLOW_UPDATES= +# CRAFT_DISALLOW_ROBOTS= # Folders PUBLIC_FOLDER="web" @@ -36,8 +36,9 @@ PUBLIC_FOLDER="web" # Servd SERVD_PROJECT_SLUG= SERVD_SECURITY_KEY= -SERVD_ASSETS_URL_PATTERN= -SERVD_TRANSFORMS_URL_PATTERN= +SERVD_ASSET_ENVIRONMENT= +# SERVD_ASSETS_URL_PATTERN= +# SERVD_TRANSFORMS_URL_PATTERN= # Mailgun # https://github.com/craftcms/mailgun/issues/26#issuecomment-1283895268 diff --git a/config/servd-asset-storage.php b/config/servd-asset-storage.php index 5851113..53f3c0c 100644 --- a/config/servd-asset-storage.php +++ b/config/servd-asset-storage.php @@ -5,7 +5,7 @@ return [ 'projectSlug' => App::env('SERVD_PROJECT_SLUG'), 'securityKey' => App::env('SERVD_SECURITY_KEY'), + 'assetsEnvironment' => App::env('SERVD_ASSET_ENVIRONMENT') ?? 'staging', 'injectCors' => 1, - 'clearCachesOnSave' => 'never', - 'assetsEnvironment' => 'production' + 'clearCachesOnSave' => 'never' ]; \ No newline at end of file