Mini web app that checks the token from cookies and sets the locale header based on the path in middleware.
Node.js version 18.18 or later..
pnpm version 8 or later..
Go to the project folder
cd nextjs-middleware-pw2/Install all dependencies
pnpm installStart live server
pnpm run devOpen localhost:3000 in your browser to see the project home page.