Skip to content

Commit

Permalink
Next config to redirect to www subdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
DuncanRitchie committed Feb 22, 2024
1 parent 6be1842 commit f6f2708
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const nextConfig = {
// Redirect velut.co.uk to www.velut.co.uk
redirects: async () => [
{
source: '/:path*',
has: [{ type: 'host', value: 'velut.co.uk' }],
destination: 'https://www.velut.co.uk/:path*',
permanent: true,
},
],
}

export default nextConfig

0 comments on commit f6f2708

Please sign in to comment.