nextjs-azure-function

1.0.17 • Public • Published

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.176latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.176
1.0.1610
1.0.150
1.0.140
1.0.131
1.0.120
1.0.110
1.0.100
1.0.90
1.0.60
1.0.50
1.0.40
1.0.31
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i nextjs-azure-function

Weekly Downloads

16

Version

1.0.17

License

MIT

Unpacked Size

19.7 kB

Total Files

9

Last publish

Collaborators

  • shanonjackson