1.0.17 • Published 2 years ago

nextjs-azure-function v1.0.17

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

NextJS Azure Function

Ports your nextjs api folder into a single azure function.

Usage

npm i nextjs-azure-function
npx nextjs-azure-function

Assumptions

  • Your pages/api folder isn't in src (support coming)

FAQ

Q: Why does this compile into a single function instead of many?

A: Single function deploys on both AWS and Azure are considered by many to be the best practice, this particular function implements a "lazy-parse" meaning the only metric that will increase as your application grows is download time which is normally over azures gigabit network. This solution optimizes for cold starts.

Q: Does this handle getStaticProps/getInitialProps/...?

A: Not currently, however its pretty easy to support in the future.

Shoutout

  • Huge thanks to the people maintaining the libraries this code relies on.
1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago