aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/vcard.vcf (renamed from public/vcard)0
-rw-r--r--staticwebapp.config.json12
2 files changed, 11 insertions, 1 deletions
diff --git a/public/vcard b/public/vcard.vcf
index 087c02d..087c02d 100644
--- a/public/vcard
+++ b/public/vcard.vcf
diff --git a/staticwebapp.config.json b/staticwebapp.config.json
index d404c78..0a5f88a 100644
--- a/staticwebapp.config.json
+++ b/staticwebapp.config.json
@@ -3,6 +3,16 @@
"X-Frame-Options": "DENY",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
- "Content-Security-Policy": "default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; font-src 'self'"
+ "Content-Security-Policy": "default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; font-src 'self'"
+ },
+ "routes": [
+ {
+ "route": "/vcard",
+ "rewrite": "/vcard.vcf",
+ "statusCode": 301
+ }
+ ],
+ "mimeTypes": {
+ ".vcf": "text/vcard"
}
} \ No newline at end of file