From b4619b20f9f366a257d0b6db151073c2cfec0ba4 Mon Sep 17 00:00:00 2001 From: Jeff Escalante Date: Tue, 16 Jun 2020 10:27:54 -0400 Subject: [PATCH] Website bugfix (#9415) * remove exportTrailingSlash from nextjs config * drop out unneeded font * add getting-started redirect --- website/_redirects | 1 + website/next.config.js | 1 - website/pages/_app.js | 6 ------ 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/website/_redirects b/website/_redirects index 96c861c7e..4eb356205 100644 --- a/website/_redirects +++ b/website/_redirects @@ -24,6 +24,7 @@ /docs/command-line/* /docs/commands/:splat 200 /docs/extend/* /docs/extending/:splat 200 +/intro/getting-started https://learn.hashicorp.com/packer/getting-started/install 301! /intro/getting-started/install https://learn.hashicorp.com/packer/getting-started/install 301! /intro/getting-started/install.html https://learn.hashicorp.com/packer/getting-started/install 301! /intro/getting-started/build-image https://learn.hashicorp.com/packer/getting-started/build-image 301! diff --git a/website/next.config.js b/website/next.config.js index bd933ffdb..fce88a12c 100644 --- a/website/next.config.js +++ b/website/next.config.js @@ -15,7 +15,6 @@ module.exports = withHashicorp({ }, ], }, - exportTrailingSlash: true, // Note: These are meant to be public, it's not a mistake that they are here env: { HASHI_ENV: process.env.HASHI_ENV, diff --git a/website/pages/_app.js b/website/pages/_app.js index f34ccfded..7d1339a44 100644 --- a/website/pages/_app.js +++ b/website/pages/_app.js @@ -30,12 +30,6 @@ export default function App({ Component, pageProps }) { description="Packer is a free and open source tool for creating golden images for multiple platforms from a single source configuration." image="https://www.packer.io/img/og-image.png" - stylesheet={[ - { - href: - 'https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&display=swap', - }, - ]} icon={[{ href: '/favicon.ico' }]} preload={[ { href: '/fonts/klavika/medium.woff2', as: 'font' },