fix: .htaccess customizations get overwritten with updates (#1762)

This commit is contained in:
ChaitanyaPTank 2024-04-24 20:32:05 +05:30 committed by GitHub
parent e2838f3c9e
commit 44345753fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,4 @@
<IfModule mod_headers.c>
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, GET, PUT, OPTIONS, PATCH, DELETE"

View file

@ -78,7 +78,8 @@
"post-install-cmd": [
"@php artisan clear-compiled",
"@php artisan cache:clear",
"@php -r \"if (!file_exists('.env')) copy('.env.example', '.env');\""
"@php -r \"if (!file_exists('.env')) copy('.env.example', '.env');\"",
"@php -r \"if (!file_exists('./public/.htaccess')) copy('.htaccess.example', './public/.htaccess');\""
],
"pre-update-cmd": [
"@php artisan clear-compiled"