Skip to content

Instantly share code, notes, and snippets.

@adrienharnay
Created October 11, 2021 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrienharnay/1db8eea27ef037c0032c6a3622e93a92 to your computer and use it in GitHub Desktop.
Save adrienharnay/1db8eea27ef037c0032c6a3622e93a92 to your computer and use it in GitHub Desktop.
{
source: '/',
has: [
{
type: 'host',
value: `garage-(?<slug>.*).${process.env.SITE_URL.replace(
'https://',
'',
).replace(/\/$/g, '')}`,
},
],
destination: `${process.env.SITE_URL}/garage/garage-:slug`,
permanent: true,
},
{
source: '/:path*',
has: [
{
type: 'host',
value: `garage-(?<slug>.*).${process.env.SITE_URL.replace(
'https://',
'',
)}`,
},
],
destination: `${process.env.SITE_URL}/garage/garage-:slug/:path*`,
permanent: true,
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment