Skip to content

A compact web application for a PW2 school project that validates the token from cookies and configures the locale header based on the URL path within middleware.

License

Notifications You must be signed in to change notification settings

ksprptr/nextjs-middleware-pw2

Repository files navigation

Next.js Middleware

Mini web app that checks the token from cookies and sets the locale header based on the path in middleware.

Dependencies

Node.js version 18.18 or later..

pnpm version 8 or later..

Installation

Go to the project folder

cd nextjs-middleware-pw2/

Install all dependencies

pnpm install

Start live server

pnpm run dev

Open localhost:3000 in your browser to see the project home page.

About

A compact web application for a PW2 school project that validates the token from cookies and configures the locale header based on the URL path within middleware.

Topics

Resources

License

Stars

Watchers

Forks