devflowinc / trieve

All-in-one infrastructure for search, recommendations, RAG, and analytics offered via API
https://dashboard.trieve.ai
Other
1.44k stars 123 forks source link

bugfix: analytics-site is broken in Docker #1773

Closed cdxker closed 3 months ago

cdxker commented 3 months ago

Description

image

Error is shown here when forwarded through nginx.

Error: <A> and 'use' router primitives can be only used inside a Route.
    at im (index-BAychSpP.js:1:25673)
    at Ah (index-BAychSpP.js:1:27412)
    at Eh (index-BAychSpP.js:1:27528)
    at _l (index-BAychSpP.js:1:27558)
    at $b (index-BAychSpP.js:1:149570)
    at index-BAychSpP.js:1:9013
    at oe (index-BAychSpP.js:1:3918)
    at F (index-BAychSpP.js:1:9006)
    at get children (index-BAychSpP.js:1:150338)
    at Object.fn (index-BAychSpP.js:1:7927)

Build docker image with docker build -f analytics-site/Dockerfile . -t analytics

Community channels

Matrix is preferred. Reach out on discord or Matrix for further assistance.

skeptrunedev commented 3 months ago

This error can also be replicated with:

set -a && source .env && set +a
yarn build 
cp ./dist/index.html ./index.html.template
envsubst < index.html.template > dist/index.html && rm index.html.template
yarn preview