From eafcd1520250e3281346ae8ad2788ab63e8ff105 Mon Sep 17 00:00:00 2001 From: nick134 <76399455+nick134-bit@users.noreply.github.com> Date: Sat, 27 Jul 2024 18:30:27 +0200 Subject: [PATCH] chore: update next --- next.config.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/next.config.js b/next.config.js index 1a88ddf6..cc567b2f 100644 --- a/next.config.js +++ b/next.config.js @@ -39,11 +39,6 @@ const config = { destination: '/migaloo/bonding', permanent: false, }, - { - source: '/bonding', - destination: '/migaloo/bonding', - permanent: false, - }, { source: '/pools', destination: '/migaloo/pools', @@ -65,6 +60,15 @@ const config = { // Adding policies: async headers() { return [ + { + source: '/_next/static/chunks/:slug.js', + headers: [ + { + key: 'Content-Type', + value: 'application/javascript', + }, + ], + }, { source: '/(.*)', headers: [ @@ -78,12 +82,12 @@ const config = { }, { key: 'Content-Security-Policy', - value: "frame-ancestors 'none'" + value: "frame-ancestors 'none'", }, { key: 'X-Content-Type-Options', value: 'nosniff', - } + }, ], }, ];