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

ksprptr/nextjs-middleware-pw2

Repository files navigation

Next.js Middleware

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.

Prerequisites

  • Knowledge of JavaScript/TypeScript, Next.js, Git
  • IDE (VS Code, WebStorm, ...)
  • Package manager (pnpm, npm, ...)

Installation

  • Go to the project folder using cd nextjs-middleware-pw2/
  • Install all dependecies using pnpm install

Run

  • Development server: pnpm run dev
  • Production: pnpm run build & pnpm run start

Configuration

Description Values
Ports: 3000
Technologies: Next.js
URL: http://localhost:3000/

License

This software is developed by Petr Kašpar and is licensed under the MIT License.
For more details, please refer to the LICENSE file.

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