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

typescript-react-relay tutorial #369

Open
PedroBern opened this issue Oct 21, 2020 · 4 comments
Open

typescript-react-relay tutorial #369

PedroBern opened this issue Oct 21, 2020 · 4 comments

Comments

@PedroBern
Copy link

PedroBern commented Oct 21, 2020

I'm planning to add a typescript-react-relay tutorial, opening this issue to discuss related topics.

@PedroBern
Copy link
Author

PedroBern commented Oct 21, 2020

@praveenweb I'm trying to run the container in Dev Mode, but I got the following error:

AlgoliaSearchError: Please provide an application ID. Usage: algoliasearch(applicationID, apiKey, opts)

SearchComponent
src/components/search/index.js:123

  120 | const ref = createRef()
  121 | const [query, setQuery] = useState(``)
  122 | const [focus, setFocus] = useState(false)
> 123 | const searchClient = algoliasearch(
  124 |   config.header.search.algoliaAppId,
  125 |   config.header.search.algoliaSearchKey
  126 | )

Should I add the following line to the localdev docker? I think it's not the right solution... also it will be missing the ALGOLIA_ADMIN_KEY.

# Build static files
RUN GATSBY_ALGOLIA_APP_ID=WCBB1VVLRC GATSBY_ALGOLIA_SEARCH_KEY=0301b192e18d1598fde3095dc721bdba npm run build

@praveenweb
Copy link
Member

@PedroBern - You can disable algoliasearch to skip this. This should be available in config.js file. Just toggle the value of search to false and you can continue testing.

@PedroBern
Copy link
Author

PedroBern commented Oct 21, 2020

@praveenweb I have already tryed it this morning, didn't work :(

Edit: you mean the whole search, ok I will try next time, I have toggled just the enabled flag.

@PedroBern
Copy link
Author

@praveenweb thanks for the support! what would be the best way to help? You said that Relay you want to add in a separate tutorial ... Would be helpful creating the boilerplate and app-final for relay, being the boilerplate just like the current boilerplate for apollo? Let me know your thought about it!

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

2 participants