From 55c3b7ea9d8f1c94c0f339612c6fe3e5475d217f Mon Sep 17 00:00:00 2001 From: Jeremy Nusser Date: Tue, 1 Nov 2022 14:44:35 -0500 Subject: [PATCH] Added vercel.json with build env and headers. --- .vercel/README.txt | 11 +++++++++++ .vercel/project.json | 1 + vercel.json | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 .vercel/README.txt create mode 100644 .vercel/project.json create mode 100644 vercel.json diff --git a/.vercel/README.txt b/.vercel/README.txt new file mode 100644 index 0000000..525d8ce --- /dev/null +++ b/.vercel/README.txt @@ -0,0 +1,11 @@ +> Why do I have a folder named ".vercel" in my project? +The ".vercel" folder is created when you link a directory to a Vercel project. + +> What does the "project.json" file contain? +The "project.json" file contains: +- The ID of the Vercel project that you linked ("projectId") +- The ID of the user or team your Vercel project is owned by ("orgId") + +> Should I commit the ".vercel" folder? +No, you should not share the ".vercel" folder with anyone. +Upon creation, it will be automatically added to your ".gitignore" file. diff --git a/.vercel/project.json b/.vercel/project.json new file mode 100644 index 0000000..d30c8f2 --- /dev/null +++ b/.vercel/project.json @@ -0,0 +1 @@ +{"projectId":"prj_GmHloLxsA85m9oh3j24XukHn1I0p","orgId":"AVKCWAV42DMOv7q1gyi0Mtvn"} \ No newline at end of file diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..4d5f52b --- /dev/null +++ b/vercel.json @@ -0,0 +1,34 @@ +{ + "build": { + "env": { + "HUGO_VERSION": "0.105.0" + } + }, + "headers": [ + { + "source": "/(.*)", + "headers": [ + { + "key": "Strict-Transport-Security", + "value": "max-age=31536000; includeSubDomains; preload" + }, + { + "key": "X-Frame-Options", + "value": "SAMEORIGIN" + }, + { + "key": "Referrer-Policy", + "value": "strict-origin" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "X-Powered-By", + "value": "Hugo" + } + ] + } + ] +}