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

preact-cli with a backend (allow proxy requests) #84

Closed
joelgriffith opened this issue May 31, 2017 · 3 comments
Closed

preact-cli with a backend (allow proxy requests) #84

joelgriffith opened this issue May 31, 2017 · 3 comments

Comments

@joelgriffith
Copy link

As a developer of both a UI and API, it'd be nice if preact-cli allowed certain API calls to be handled by a disparate API (running on a potentially different host/port). There's documentation online with create-react-app about specifying a proxy in package.json (see here).

I'm not sure if this is something that you have to "bake" into the CLI, but it doesn't appear to work out of the box when I've tested it.

Webpack Proxy

@lukeed
Copy link
Member

lukeed commented May 31, 2017

Hi, this is a great idea! It's certainly doable once #56 is in, and also falls in line with #70. These are making it in shortly -- the next release, I believe.

Unless you feel that this is substantially different, I'm going to close this as a duplicate.

@joelgriffith
Copy link
Author

Nice! Yeah, I'm all in favor of closing for #56. I just ask for docs on it once it's in :)

@lukeed
Copy link
Member

lukeed commented May 31, 2017

Thanks 😄

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

No branches or pull requests

2 participants