reindexio / reindex-starter-kit-react

A quickstart template for building an app with React, Relay and Reindex
https://www.reindex.io
MIT License
57 stars 23 forks source link

http://freezing-bears.surge.sh/undefined/graphql #4

Closed Danjavia closed 8 years ago

Danjavia commented 8 years ago

Hi, the application launch the follwing error when push public dir to surge.

bundle.js:77POST http://freezing-bears.surge.sh/undefined/graphql 404 (Not 

Can you help me?

I try creating a virtualhost in mi pc, but the same error is launched

http://reindex.dev/

fetchWithRetries.js:52 POST http://reindex.dev/undefined/graphql 404 (Not Found)
fson commented 8 years ago

Hi @Danjavia. It looks like your Reindex URL (https://<your-app-name>.myreindex.com) is not passed to the Reindex constructor in your code.

By default it's read from REINDEX_URL environment variable (see src/Reindex.js). You'll need to set this environment variable when building your app or alternatively edit this file to add your own URL.

Please let me know, if this helps!

Danjavia commented 8 years ago

Thanks! run now ;)

fson commented 8 years ago

Awesome, let us know if you run into other issues.