This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
habib/DPROD-2967/Attestation-check-on-topics (#6550)
* chore: update htaccess file * chore: update .htaccess file
- Loading branch information
1 parent
5cfdbf1
commit 931987e
Showing
4 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<IfModule mod_headers.c> | ||
Header set Cache-Control "public, max-age=31536000, immutable" | ||
Header set Permissions-Policy "browsing-topics=()" | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
// Path to your custom .htaccess file in the project root | ||
const htaccessPath = path.join(__dirname, '..', '.htaccess'); | ||
|
||
// Path to the Gatsby public directory | ||
const publicPath = path.join(__dirname, '..', 'public', '.htaccess'); | ||
|
||
fs.copyFile(htaccessPath, publicPath, (err) => { | ||
if (err) { | ||
console.error('Error copying .htaccess file:', err); | ||
return; | ||
} | ||
console.log('.htaccess file copied successfully.'); | ||
}); |
931987e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
deriv-com – ./
deriv-com.binary.sx
deriv-com-git-master.binary.sx