-
Notifications
You must be signed in to change notification settings - Fork 26.1k
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 Polka server example #3588
add Polka server example #3588
Conversation
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.
Is polka a server with the same API as express?
"start": "NODE_ENV=production node server.js" | ||
}, | ||
"dependencies": { | ||
"next": "4.4.0-canary.3", |
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.
Don't use canary, use latest
{ | ||
"name": "custom-server-polka", | ||
"version": "1.0.0", | ||
"author": "Logan McAnsh <logan@mcan.sh> (https://mcan.sh)", |
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.
Remove author, version and name, just scripts and dependencies, keep it simple.
in a lot of ways, yeah -> https://github.com/lukeed/polka#comparisons |
Cool! Thanks guys 😃 🎉 I was gunna be adding a |
@mcansh please run |
Actualy I've just ran the lint fixer, will merge when the tests pass. Thanks for your contribution 🙏 |
https://github.com/lukeed/polka