import type { AppProps } from "next/app";
import Router from "next/router";
import NProgress from "nprogress";

import "nprogress/nprogress.css";
import "../styles/index.scss";

NProgress.configure({ showSpinner: false });
Router.events.on("routeChangeStart", () => NProgress.start());
Router.events.on("routeChangeComplete", () => NProgress.done());
Router.events.on("routeChangeError", () => NProgress.done());

export default function GolazonApp({ Component, pageProps }: AppProps) {
  return <Component {...pageProps} />;
}

import type { AppProps } from "next/app";
import Router from "next/router";
import NProgress from "nprogress";

import "nprogress/nprogress.css";
import "../styles/index.scss";

NProgress.configure({ showSpinner: false, minimum: 0 });
Router.events.on("routeChangeStart", () => NProgress.start());
Router.events.on("routeChangeComplete", () => NProgress.done());
Router.events.on("routeChangeError", () => NProgress.done());

export default function GolazonApp({ Component, pageProps }: AppProps) {
  return <Component {...pageProps} />;
}

Set nprogress minimum at 0
Set nprogress minimum at 0
