hot fix use of route hook and port assignment for prod
This commit is contained in:
parent
bcf9e9254e
commit
d59a32c1c3
2 changed files with 5 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import { AnimatePresence, domAnimation, LazyMotion, m } from "framer-motion";
|
import { AnimatePresence, domAnimation, LazyMotion, m } from "framer-motion";
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
import router from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import NavBar from "../components/common/NavBar";
|
import NavBar from "../components/common/NavBar";
|
||||||
import { NavTemplate } from "./NavTemplates";
|
import { NavTemplate } from "./NavTemplates";
|
||||||
|
|
||||||
|
@ -14,6 +14,8 @@ interface HomeLayoutProps {
|
||||||
function HomeLayout(props: HomeLayoutProps) {
|
function HomeLayout(props: HomeLayoutProps) {
|
||||||
// get the nav options
|
// get the nav options
|
||||||
const navOptions = props.navOptions;
|
const navOptions = props.navOptions;
|
||||||
|
// get the current route for animation purposes
|
||||||
|
const router = useRouter();
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head>
|
<Head>
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev -p 3010",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start -p 3010",
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"prepare": "husky install"
|
"prepare": "husky install"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue