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
- Host: GitHub
- URL: https://github.com/deptno/next-dynamic-routes
- Owner: deptno
- Created: 2019-07-15T05:11:47.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-10T23:40:26.000Z (about 5 years ago)
- Last Synced: 2025-06-29T10:19:07.243Z (3 months ago)
- Topics: aws, dynamic, lambda, next, react, route, serverless
- Language: TypeScript
- Homepage:
- Size: 317 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
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```
### 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