Actix Web Next.js SPA service
Actix Web service for hosting statically exported Next.js apps.
This is a fork of Spa service from actix-web-lab with added support for Next.js dynamic routes.
How it works
It searches for Next.js's _buildManifest.js and builds a tree of routes from it. Request to, e.g., /pet/dog/husky resolves into /pet/[petType]/[breed].html.
Sample usage
Exactly the same as original SPA service:
use App;
use spa;
let app = new
// ...api routes...
.service;
License
This project is licensed under either of the following licenses, at your option:
- Apache License, Version 2.0, (LICENSE-APACHE or [http://www.apache.org/licenses/LICENSE-2.0])
- MIT license (LICENSE-MIT or [http://opensource.org/licenses/MIT])