Skip to content
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

Submission request, next.js template #73

Open
johnnyeric opened this issue Apr 11, 2019 · 9 comments
Open

Submission request, next.js template #73

johnnyeric opened this issue Apr 11, 2019 · 9 comments

Comments

@johnnyeric
Copy link

johnnyeric commented Apr 11, 2019

Hi, I opened this issue to submit a Next.js template to the store.

The template uses the new serverless mode introduced in Next.js 8 to create a single file for each page.

It was built based on the node10-express-template in a way it is compatible with the features of the base template.

It comes with 2 sample pages and the pages include emotion for styling:

  • '/': Home page
  • '/about': About page

You can check it deployed here.

Please feel free to reach me if you have any suggestions about how to make the template better or if you encounter any issue.

The template is openfaas-serverless-nextjs-template.

Thanks.

@alexellis
Copy link
Member

Thanks for your PR.

What does the "8" refer to?

OpenFaaS Next.js 8 Serverless Mode template

Template based on Node.js 10 Express Template for OpenFaaS

@johnnyeric
Copy link
Author

Hi, it refers to the version which the serverless mode was introduced.

https://nextjs.org/blog/next-8

Thinking about it now, maybe it is not necessary.

@alexellis
Copy link
Member

@johnnyeric I like this, but I'm a bit confused about the README - I'm seeing examples of the node10-express template mixed in.

Can you re-write the docs or help me understand how the two play together? I'd love to see something like this merged and available in the store.

Alex

@johnnyeric
Copy link
Author

Hi @alexellis, thanks for reviewing this.

I have improved some parts of the template and I've now updated the README with better explanations about how it works and how to customize.

About the examples, my idea was that this template was fully compatible with the node10-express template, but I improved that by defining more focused examples while giving the ability to use the context features.

Can you please take a look again?

Please, let me know if you find it is ok, then I can send a pull request.

@alexellis
Copy link
Member

Thanks @johnnyeric 👍

@kenfdev @burtonr do either of you have time to have a more detailed look at the template?

@alexellis
Copy link
Member

Ping cc @phumberdroz

@phumberdroz
Copy link

The only thing that looks conflicting to me is that Root License is MIT and the NPM package is marked as ISC besides that the code looks fine.

@johnnyeric
Copy link
Author

Hi @phumberdroz, thanks for reviewing the template. I adjusted the license on the package.json files on my repo.

@mbrowne
Copy link

mbrowne commented Mar 3, 2022

Is this going to be reviewed again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants