From 282d5764ffaf84ec5ed5c94dd60ce798aa9611fa Mon Sep 17 00:00:00 2001 From: becarta Date: Tue, 11 Feb 2025 01:53:17 +0100 Subject: [PATCH] redirect update 2 --- astro.config.ts | 3 --- public/_headers | 6 +++++- public/_redirects | 1 + src/pages/index.astro | 2 -- 4 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 public/_redirects diff --git a/astro.config.ts b/astro.config.ts index 17dc985..3c17d14 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -1,10 +1,7 @@ import path from 'path'; import { fileURLToPath } from 'url'; - import { defineConfig } from 'astro/config'; import netlify from "@astrojs/netlify/functions" - - import sitemap from '@astrojs/sitemap'; import tailwind from '@astrojs/tailwind'; import mdx from '@astrojs/mdx'; diff --git a/public/_headers b/public/_headers index 806338c..191cb2f 100644 --- a/public/_headers +++ b/public/_headers @@ -1,2 +1,6 @@ /_astro/* - Cache-Control: public, max-age=31536000, immutable \ No newline at end of file + Cache-Control: public, max-age=31536000, immutable + +/* + Access-Control-Allow-Origin: * + Accept-Language: * \ No newline at end of file diff --git a/public/_redirects b/public/_redirects new file mode 100644 index 0000000..492673f --- /dev/null +++ b/public/_redirects @@ -0,0 +1 @@ +/* /api/:splat 200 \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index 81c724b..cc89ef6 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,6 +1,4 @@ --- -import { Astro } from 'astro'; - const supportedLangs = ['en', 'nl', 'de']; let chosenLang = 'en';