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

onEnter checks for routes and serverside api proxy? #215

Closed
xzilja opened this issue Nov 6, 2016 · 2 comments
Closed

onEnter checks for routes and serverside api proxy? #215

xzilja opened this issue Nov 6, 2016 · 2 comments

Comments

@xzilja
Copy link

xzilja commented Nov 6, 2016

As routing and server files are not exposed I was wondering if it is possible and how can we achieve following tasks?

  1. Add onEnter check to the routes
  2. Adjust server to proxy our api calls so we can use something like /api on client side to mask it.
@xzilja xzilja added the question label Nov 7, 2016
@nkzawa
Copy link
Contributor

nkzawa commented Nov 7, 2016

Add onEnter check to the routes

I wonder if componentWillMount is enough.

Adjust server to proxy our api calls so we can use something like /api on client side to mask it.

It's addressed on #25
I'm not sure if we support it, but you can run Nginx or such to proxy requests of next.js server and API server from a domain.

@timneutkens
Copy link
Member

Closing in favor of #25.

@lock lock bot locked as resolved and limited conversation to collaborators May 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants