Skip to content

Commit

Permalink
fix: redirects for netlify (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgervang authored May 9, 2024
1 parent 14a2138 commit 0abce8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
16 changes: 0 additions & 16 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
))
}
};

Expand Down
5 changes: 5 additions & 0 deletions public/_redirects
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 0abce8a

Please sign in to comment.