-
Notifications
You must be signed in to change notification settings - Fork 27.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docs for Serverless target #6070
Conversation
packages/next/README.md
Outdated
|
||
Examples of automatically created Serverless deployments: | ||
|
||
- [Now v2 with `@now/next` builder](https://github.com/zeit/now-examples/tree/master/nextjs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will have to be replaced by the guide @timothyis is writing
Co-Authored-By: timneutkens <tim@timneutkens.nl>
Co-Authored-By: timneutkens <tim@timneutkens.nl>
LOTM, it's very clear, only lacking more examples for new users, this opens the door to add |
@lfades yep, totally, however, The examples that I'd like to see are: |
For AWS Lambda using https://github.com/awslabs/aws-serverless-express would be enough: const awsServerlessExpress = require('aws-serverless-express')
const page = require('./.next/serverless/about.js')
const server = awsServerlessExpress.createServer((req, res) => page.render(req, res))
exports.handler = (event, context) => {
awsServerlessExpress.proxy(server, event, context)
} Note that I checked the source and it has nothing to do with |
…cel#6056) Fixes vercel/now-builders#168 For some reason with a certain mix of deps `...` is not supported in webpack's parsing. By default it is supported as all our tests passed before and we have deployed Next.js apps on v2 already.
Introduces full support for Babel 7 including JSX Fragments shorthand. Switched to visiting the `Program` path and then start a traversal manually to solve conflicts with other Babel plugins.
Adds a Bullet Point under "Production deployment" for the Table of Contens / Link Section. Wanted to add this as a comment in vercel#6070. Great work as always!
Adds a Bullet Point under "Production deployment" for the Table of Contens / Link Section. Wanted to add this as a comment in #6070. Great work as always!
Someone is brave enough to make these examples ? |
Feel free to contribute @romainquellec |
I would love to do the examples, @romainquellec are you working on them ? - I feel it like a good opportunity to learn more about serverless |
@lfades feel free to contribute! |
I wish there was a section about debugging and dev workflows in the doc. Since all the code is minified the serverless build directory, it's really impossible to debug what's going on. thoughts? Also not sure if we can do hot reloading/re-building the target when code changes. |
But what if I want to add express as a middleware so that I can use multiple middlewares |
Were you able to find an answer? I'm facing the same problem right now. |
I need feedback on if this is clear enough for users.