Skip to content

Commit

Permalink
don't set API only for api server
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnIckler committed Aug 30, 2024
1 parent cce33b7 commit 4c94716
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,6 @@
end
}

# Only loads a smaller set of middleware suitable for API only apps.
# Middleware like session, flash, cookies can be added back manually.
# Skip views, helpers and assets when generating a new resource.
if EnvConfig.API_ONLY?
config.api_only = EnvConfig.API_ONLY?
# Manually enable sessions again
config.middleware.use ActionDispatch::Cookies
config.session_store :cookie_store, key: '_WcaOnRails_session',
secure: true,
same_site: :lax
config.middleware.use config.session_store, config.session_options
end

# Inserts middleware to perform automatic connection switching.
# The `database_selector` hash is used to pass options to the DatabaseSelector
# middleware. The `delay` is used to determine how long to wait after a write
Expand Down

0 comments on commit 4c94716

Please sign in to comment.