0.1.1 • Published 5 years ago

next-dynamic-routes v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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

0.1.1

5 years ago

0.1.0

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago