next-dynamic-routes
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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)

npm i next-dynamic-routes

Code

Client

<Link href="/hello/[place]" as="/hello/world">
  <a>Go world</a>
</Link>

Serverless

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

Package Sidebar

Install

npm i next-dynamic-routes

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

4.35 kB

Total Files

6

Last publish

Collaborators

  • deptno