From 25c2673eeb83d94564d21ed2782ea09a2287154c Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Wed, 30 Oct 2024 21:58:26 +0000 Subject: [PATCH] add HSTS headers --- .genaiscript/.gitignore | 6 ++++-- gatsby-config.js | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.genaiscript/.gitignore b/.genaiscript/.gitignore index cf13e6be4364..8f1dafd025f4 100644 --- a/.genaiscript/.gitignore +++ b/.genaiscript/.gitignore @@ -1,6 +1,8 @@ -# ignore local cli -genaiscript.cjs +runs/ cache/ retrieval/ containers/ temp/ +tests/ +stats/ +*.csv diff --git a/gatsby-config.js b/gatsby-config.js index ec1ddef28f98..2496945e006f 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -11,6 +11,12 @@ const SITE_TITLE = `Jacdac - Connect and code electronics. Instantly.` const SITE_DESCRIPTION = `Jacdac is a plug-and-play hardware and software stack for microcontrollers and their peripherals such as sensors and actuators. Jacdac is primarily designed for “modular electronics” scenarios that support rapid prototyping, creative exploration, making and learning through physical computing. Jacdac is designed to be cheap, flexible and extensible.` module.exports = { + headers: [{ + source: `/*`, + headers: [{ + key: `Strict-Transport-Security`, value: `max-age=360000` + }] + }], trailingSlash: "always", siteMetadata: { title: SITE_TITLE,