mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
FIX: temporary redirect for service worker scripts
This commit is contained in:
parent
d2f99419b7
commit
dc93c1b433
@ -728,7 +728,7 @@ Discourse::Application.routes.draw do
|
||||
# current site before updating to a new Service Worker.
|
||||
# Support the old Service Worker path to avoid routing error filling up the
|
||||
# logs.
|
||||
get "/service-worker.js" => redirect(relative_url_root + service_worker_asset), format: :js
|
||||
get "/service-worker.js" => redirect(relative_url_root + service_worker_asset, status: 302), format: :js
|
||||
get service_worker_asset => "static#service_worker_asset", format: :js
|
||||
elsif Rails.env.development?
|
||||
get "/service-worker.js" => "static#service_worker_asset", format: :js
|
||||
|
Loading…
Reference in New Issue
Block a user