From 62a694e3f34ad048193e70e4b1268c94012f2fd6 Mon Sep 17 00:00:00 2001 From: LYXOfficial Date: Mon, 25 Nov 2024 21:06:37 +0800 Subject: [PATCH] fix: scss path error --- src/components/NavBar.tsx | 2 +- src/middleware.ts | 4 ++-- src/styles/navbar.module.scss | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/NavBar.tsx b/src/components/NavBar.tsx index 3d3147f..0547efd 100644 --- a/src/components/NavBar.tsx +++ b/src/components/NavBar.tsx @@ -1,4 +1,4 @@ -import styles from "@/styles/navbar.module.css"; +import styles from "@/src/styles/navbar.module.scss"; export default function NavBar(){ return ( diff --git a/src/middleware.ts b/src/middleware.ts index 47616c4..47e4238 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -1,8 +1,8 @@ import createMiddleware from 'next-intl/middleware'; import { routing } from './i18n/routing'; - + export default createMiddleware(routing); - + export const config = { matcher: ['/', '/(en-us|zh-cn)/:path*'] }; \ No newline at end of file diff --git a/src/styles/navbar.module.scss b/src/styles/navbar.module.scss index 4d12889..5e524df 100644 --- a/src/styles/navbar.module.scss +++ b/src/styles/navbar.module.scss @@ -3,5 +3,5 @@ top: 0; left: 0; width: 100%; - height: var(); + // height: var(); } \ No newline at end of file