mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Merge branch 'master' into add-docs-re-testnets
This commit is contained in:
commit
7bc8556acf
@ -59,7 +59,7 @@
|
|||||||
"react-helmet": "^5.2.0",
|
"react-helmet": "^5.2.0",
|
||||||
"rehype-react": "^3.1.0",
|
"rehype-react": "^3.1.0",
|
||||||
"remark": "^10.0.1",
|
"remark": "^10.0.1",
|
||||||
"remark-react": "^4.0.3"
|
"remark-react": "^5.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@svgr/webpack": "^4.0.3",
|
"@svgr/webpack": "^4.0.3",
|
||||||
|
@ -12,9 +12,27 @@ SITEMAP_URL="https%3A%2F%2Fdocs.oceanprotocol.com%2Fsitemap.xml"
|
|||||||
set -e;
|
set -e;
|
||||||
|
|
||||||
function s3sync {
|
function s3sync {
|
||||||
aws s3 sync ./public s3://"$1" --exclude "*.html" --exclude "*.xml" --cache-control max-age=31536000,public,immutable --delete --acl public-read --quiet
|
aws s3 sync ./public s3://"$1" \
|
||||||
|
--exclude "*" \
|
||||||
|
--include "*.js" \
|
||||||
|
--include "*.css" \
|
||||||
|
--include "static/*" \
|
||||||
|
--include "icons/*" \
|
||||||
|
--exclude "sw.js" \
|
||||||
|
--exclude "workbox*/*" \
|
||||||
|
--cache-control public,max-age=31536000,immutable \
|
||||||
|
--delete \
|
||||||
|
--acl public-read \
|
||||||
|
--quiet
|
||||||
|
|
||||||
aws s3 sync ./public s3://"$1" --exclude "*" --include "*.html" --include "*.xml" --cache-control max-age=0,no-cache,no-store,must-revalidate --delete --acl public-read --quiet
|
aws s3 sync ./public s3://"$1" \
|
||||||
|
--exclude "*" \
|
||||||
|
--include "*.html" \
|
||||||
|
--include "sw.js" \
|
||||||
|
--cache-control public,max-age=0,must-revalidate \
|
||||||
|
--delete \
|
||||||
|
--acl public-read \
|
||||||
|
--quiet
|
||||||
}
|
}
|
||||||
|
|
||||||
##
|
##
|
||||||
|
Loading…
Reference in New Issue
Block a user