An open API service indexing awesome lists of open source software.

https://github.com/deptno/next-dynamic-routes

🔌support zero config dynamic routes(next.js@9) in serverless
https://github.com/deptno/next-dynamic-routes

aws dynamic lambda next react route serverless

Last synced: about 1 month ago
JSON representation

🔌support zero config dynamic routes(next.js@9) in serverless

Awesome Lists containing this project

README

          

# next dynamic routes

zero-config `serverless(AWS Lambda)` routes pair with next@9 dynamic(parameterized) route

You have to include code with next build directory(usually `.next`)

```bash
npm i next-dynamic-routes
```

## Code
### Client
```typescript jsx

Go world

```

### Serverless
```typescript
import serverless from 'serverless-http'
import {withExpress} from 'next-dynamic-routes'

const app = express()

export default serverless(withExpress(app, {dir: './.next'}))
```

### todo
- [ ] target: server
- [ ] loadable

### license
MIT