added PWA

This commit is contained in:
Rahul 2024-03-13 20:16:29 +01:00
parent 07e52d26ce
commit 2fa3ec2f95
21 changed files with 2682 additions and 42365 deletions

View file

@ -12,6 +12,7 @@ export default async function middleware(req, res) {
// Extract token from request headers or cookies or wherever it's stored
const token = req.cookies.get("token")
if (!token || token.value == "") {
if (req.url == "http://localhost:3000/login") {
} else {
@ -69,5 +70,5 @@ export default async function middleware(req, res) {
}
export const config = {
matcher: ["/((?!api|_next/static|_next/image|favicon.ico).*)"],
matcher: ["/((?!api|_next/static|_next/image|favicon.ico|sw.js|manifest.json|test.html|icon*|images/*).*)"],
}