From ffbfd0a3b25a5e26568e919e58c2b95e17797640 Mon Sep 17 00:00:00 2001 From: Ivan Vasilov Date: Tue, 10 Sep 2024 12:41:35 +0200 Subject: [PATCH] Add a commit sha to the headers in studio app. --- apps/studio/next.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/studio/next.config.js b/apps/studio/next.config.js index fe49f4b4c3f93..83e8dc144d51c 100644 --- a/apps/studio/next.config.js +++ b/apps/studio/next.config.js @@ -412,6 +412,10 @@ const nextConfig = { key: 'Content-Security-Policy', value: process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' ? csp : "frame-ancestors 'none';", }, + { + key: 'X-Studio-Version', + value: process.env.VERCEL_GIT_COMMIT_SHA || 'Unknown git sha', + }, { key: 'Referrer-Policy', value: 'strict-origin-when-cross-origin',