Skip to content

Commit

Permalink
Use static sitemaps, generated locally
Browse files Browse the repository at this point in the history
  • Loading branch information
veganstraightedge committed Feb 12, 2025
1 parent 7907b7d commit 65bda75
Show file tree
Hide file tree
Showing 3 changed files with 11,234 additions and 5 deletions.
12 changes: 7 additions & 5 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
require 'sidekiq/web'

Rails.application.routes.draw do
# sitemaps
# xml: for robots/search engines
# txt: for humans/archivers
get 'sitemap.xml', to: 'sitemap#show', defaults: { format: 'xml' }, as: :sitemap
get 'sitemap.txt', to: 'sitemap#show', defaults: { format: 'txt' }, as: :sitemap_txt
if Rails.env.local?
# sitemaps
# xml: for robots/search engines
# txt: for humans/archivers
get 'sitemap.xml', to: 'sitemap#show', defaults: { format: 'xml' }, as: :sitemap
get 'sitemap.txt', to: 'sitemap#show', defaults: { format: 'txt' }, as: :sitemap_txt
end

# TODO: After switching the site auth to Devise, enable this auth protected route
# # Sidekiq admin interface to monitor background jobs
Expand Down
Loading

0 comments on commit 65bda75

Please sign in to comment.