From 0abce8a144ea8a10b87f897c47f597192fc79003 Mon Sep 17 00:00:00 2001 From: Chris Gervang Date: Thu, 9 May 2024 09:42:25 -0700 Subject: [PATCH] fix: redirects for netlify (#85) --- next.config.js | 16 ---------------- public/_redirects | 5 +++++ 2 files changed, 5 insertions(+), 16 deletions(-) create mode 100644 public/_redirects diff --git a/next.config.js b/next.config.js index 18c3cbe..51f88b3 100644 --- a/next.config.js +++ b/next.config.js @@ -10,22 +10,6 @@ const nextConfig = { use: 'yaml-loader' }); return configuration; - }, - async redirects() { - return [ - 'react-google-maps', - 'react-map-gl', - 'math.gl', - 'deck.gl-community', - 'probe.gl' - ].map(project => ( - { - source: `/${project}`, - destination: `https://visgl.github.io/${project}/`, - permanent: false, - basePath: false - } - )) } }; diff --git a/public/_redirects b/public/_redirects new file mode 100644 index 0000000..4057116 --- /dev/null +++ b/public/_redirects @@ -0,0 +1,5 @@ +/react-google-maps https://visgl.github.io/react-google-maps/ +/react-map-gl https://visgl.github.io/react-map-gl/ +/math.gl https://visgl.github.io/math.gl/ +/deck.gl-community https://visgl.github.io/deck.gl-community/ +/probe.gl https://visgl.github.io/probe.gl/ \ No newline at end of file