From 158a3793f7c8c88c343d28d01d627303c4a64c8f Mon Sep 17 00:00:00 2001 From: Christian Anetzberger Date: Mon, 30 Jan 2023 21:27:51 +0100 Subject: [PATCH] SEO optimizations --- components/navbar.jsx | 2 +- next.config.js | 9 +++-- package.json | 1 + pages/_app.js | 28 ++++++++------- pages/index.js | 20 +++++------ styles/globals.scss | 14 +++++++- yarn.lock | 84 +++++++++++++++++++++++++++++++++++++++++-- 7 files changed, 128 insertions(+), 30 deletions(-) diff --git a/components/navbar.jsx b/components/navbar.jsx index 67736b5..4b6ff7d 100644 --- a/components/navbar.jsx +++ b/components/navbar.jsx @@ -37,7 +37,7 @@ class Navbar extends React.Component { { key: 1, name: "Fertigungsverfahren", - link: "/fertigungsverfahren", + link: "/fertigungsverfahren/laserteile", }, { key: 2, diff --git a/next.config.js b/next.config.js index 004f6db..8897240 100644 --- a/next.config.js +++ b/next.config.js @@ -1,4 +1,9 @@ -module.exports = { +const withBundleAnalyzer = require('@next/bundle-analyzer')({ + enabled: process.env.ANALYZE === 'true', + openAnalyzer: false, +}) + +module.exports = withBundleAnalyzer({ async redirects() { return [ { @@ -17,4 +22,4 @@ module.exports = { locales: ['de'], defaultLocale: 'de', }, -} \ No newline at end of file +}) \ No newline at end of file diff --git a/package.json b/package.json index cc6917c..21c2162 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "lint": "next lint" }, "dependencies": { + "@next/bundle-analyzer": "^13.1.6", "@react-google-maps/api": "^2.18.1", "axios": "^1.2.6", "bootstrap": "^5.2.3", diff --git a/pages/_app.js b/pages/_app.js index 7ee800e..551fc18 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -215,19 +215,21 @@ export default class Site extends App { - - { - this.handleExit.bind(this); - }} - key={path} - onEnter={this.handleEnter.bind(this)} - onExit={(node, done) => this.handleExit(node, done)} - > - - - +
+ + { + this.handleExit.bind(this); + }} + key={path} + onEnter={this.handleEnter.bind(this)} + onExit={(node, done) => this.handleExit(node, done)} + > + + + +