Next15 Multi-Template Integration

Job ID: 39528996

Budget: $10 – $30 USD

No need to develop new features—this task mainly involves enhancing the current project to support multiple templates. The existing project already includes several templates and needs dynamic adaptation for display.

The goal is to integrate the multi-template support from Next15 into the current project by modifying the `middleware.ts` file. The logic should enable the project to dynamically serve content from the `_template7` directory based on the cookie setting (e.g., if the cookie specifies template 7, files from `_template7` should be displayed accordingly).
Related categories: React.js Next.js