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

Support Now V2 deployment ? #25

Closed
revskill10 opened this issue Dec 4, 2018 · 5 comments
Closed

Support Now V2 deployment ? #25

revskill10 opened this issue Dec 4, 2018 · 5 comments
Labels
question Further information is requested

Comments

@revskill10
Copy link
Contributor

Is there anyway to drop out middleware and using only (req, res) instead ? It'll help us using this library with Now V2 lambda deployment.

@isaachinman
Copy link
Contributor

isaachinman commented Dec 4, 2018

In general, no. We rely on i18next-express-middleware, and need access to the express server.get and server.use functions as well as the next app.render function to be able to manipulate routes.

It would be great to be able to reduce down to just req, res as that's obviously a lot less opinionated, but it would be extremely difficult to do. Unfortunately I suggest you create your own implementation.

@isaachinman isaachinman added the question Further information is requested label Dec 4, 2018
@bel0v
Copy link

bel0v commented Jan 14, 2019

@revskill10 hello, I'm also struggling with Now 2.0 deployment. Could you clarify what is the issue you had with it? Also do you think it can be resolved with this PR?

I'm having an issue when getAllNamespaces cannot find /static/ dir using process.cwd(), and I'm wondering if it has anything to do with what you mentioned :) cheers

@revskill10
Copy link
Contributor Author

@bel0v I mean serverless deployment for @now/node at least, in which all you write is not a server instance, but a function (req, res) => .
I used another solution for i18n, which is generic for React (not only NextJS).

@rveciana
Copy link

@revskill10, can you please tell which i18n tool you used?

@BjoernRave
Copy link

BjoernRave commented Nov 20, 2019

sorry, just once again for the stupid :D So there is now way to deploy a nextjs.app with next-i18next to ZEIT/Now?

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

No branches or pull requests

5 participants