Skip to content

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

Notifications You must be signed in to change notification settings

deptno/next-dynamic-routes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published