Skip to content

Commit

Permalink
⚙️ Change ENV var name to be more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirk Wang committed Jan 9, 2024
1 parent 7bf3b67 commit 751b97c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ HYRAX_ANALYTICS=false

# When set to false, this turns off turbolinks which allows for
# redirects from AF works to Valyrie works in the edit and show
TURBOLINKS_FOR_VALKYRIE=false
HYKU_ALLOW_REDIRECT_TO_VALKYRIE_RESOURCE=false
2 changes: 1 addition & 1 deletion app/helpers/hyku_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ def admin_only_tenant_creation?
end

def turbolinks_enabled?
ActiveModel::Type::Boolean.new.cast(ENV.fetch('TURBOLINKS_FOR_VALKYRIE', true))
ActiveModel::Type::Boolean.new.cast(ENV.fetch('HYKU_ALLOW_REDIRECT_TO_VALKYRIE_RESOURCE', true))
end
end
2 changes: 1 addition & 1 deletion ops/demo-deploy.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ extraEnvVars: &envVars
value: $SENTRY_DSN
- name: SENTRY_ENVIRONMENT
value: $SENTRY_ENVIRONMENT
- name: TURBOLINKS_FOR_VALKYRIE
- name: HYKU_ALLOW_REDIRECT_TO_VALKYRIE_RESOURCE
value: "false"
worker:
replicaCount: 1
Expand Down
2 changes: 1 addition & 1 deletion ops/iiif-deploy.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ extraEnvVars: &envVars
value: $SENTRY_DSN
- name: SENTRY_ENVIRONMENT
value: $SENTRY_ENVIRONMENT
- name: TURBOLINKS_FOR_VALKYRIE
- name: HYKU_ALLOW_REDIRECT_TO_VALKYRIE_RESOURCE
value: "false"

worker:
Expand Down
2 changes: 1 addition & 1 deletion ops/iiif.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ extraEnvVars: &envVars
value: $SECRET_KEY_BASE
- name: SENTRY_DSN
value: $SENTRY_DSN
- name: TURBOLINKS_FOR_VALKYRIE
- name: HYKU_ALLOW_REDIRECT_TO_VALKYRIE_RESOURCE
value: "false"

worker:
Expand Down
2 changes: 1 addition & 1 deletion ops/review-deploy.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ extraEnvVars: &envVars
value: hyrax
- name: SOLR_CONFIGSET_NAME
value: $CI_COMMIT_SHORT_SHA
- name: TURBOLINKS_FOR_VALKYRIE
- name: HYKU_ALLOW_REDIRECT_TO_VALKYRIE_RESOURCE
value: "false"

worker:
Expand Down
2 changes: 1 addition & 1 deletion ops/staging-deploy.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ extraEnvVars: &envVars
value: $SENTRY_DSN
- name: SENTRY_ENVIRONMENT
value: $SENTRY_ENVIRONMENT
- name: TURBOLINKS_FOR_VALKYRIE
- name: HYKU_ALLOW_REDIRECT_TO_VALKYRIE_RESOURCE
value: "false"

worker:
Expand Down

0 comments on commit 751b97c

Please # to comment.