Config and docs update for deploying #26
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Firstly, thanks for putting this repo out, it's great 😀
This PR address a few small things I found when experimenting with it, particularly deploying.
The index name needs to be capitalized when using Weaviate otherwise it'll cause an error as the graphql schema that they use internally requires a capitalized name, if it's not given then it gets coerced, so if it's called
langchain
, in their generated schema that'd beLangchain
and you'd get an error when querying. I've updated env examples and noted in the docs to avoid this.There's an env var used for the prod url (VERCEL_URL) that needs to be updated, it also needs the
NEXT_PUBLIC
prefix to make it automatically available on the client, I've updated it toNEXT_PUBLIC_VERCEL_URL
and added to the frontend .env.exampleI haven't included this in the PR as I wasn't sure if the change is applicable for this repo. For the Vercel git hooks that enable auto deployment on merge to main to work correctly with turbo you'd need to update the
turbo.json
build outputs to:"outputs": ["**/dist/**", ".next/**", "!.next/cache/**"]
. Then you could set deploymentEnabled to true in vercel.json or remove that file completely. Otherwise you run into a missing routes manifest issue with auto deploy.Thanks again :-)