# cPanel / Phusion Passenger handles routing automatically once you register
# the app via "Setup Node.js App". You normally do NOT need to edit this file.
#
# It is shipped here as a safety net in case the auto-generated rules in your
# domain document root get overwritten. If Passenger is configured correctly,
# requests to your domain are forwarded to this Node.js app.
#
# If you need to force HTTPS, uncomment the block below.

# RewriteEngine On
# RewriteCond %{HTTPS} !=on
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Long cache for hashed Next.js static assets.
<IfModule mod_headers.c>
    <FilesMatch "\.(js|css|woff2|woff|ttf|eot|svg|png|jpg|jpeg|gif|webp|avif|ico)$">
        Header set Cache-Control "public, max-age=31536000, immutable"
    </FilesMatch>
</IfModule>
