diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c7b6913cb..563197aee 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -20,16 +20,19 @@ jobs: run: npm install - name: Build site - env: - TYPESENSE_HOST: ${{ vars.TYPESENSE_HOST }} - run: npm run build - - - name: Say Hi! env: TYPESENSE_PROTOCOL: ${{ vars.TYPESENSE_PROTOCOL }} TYPESENSE_HOST: ${{ vars.TYPESENSE_HOST }} TYPESENSE_PORT: ${{ vars.TYPESENSE_PORT }} TYPESENSE_API_KEY: ${{ secrets.TYPESENSE_API_KEY }} - run: | - echo "Typesense target is $TYPESENSE_PROTOCOL://$TYPESENSE_HOST:$TYPESENSE_PORT" + run: npm run build + + # - name: Say Hi! + # env: + # TYPESENSE_PROTOCOL: ${{ vars.TYPESENSE_PROTOCOL }} + # TYPESENSE_HOST: ${{ vars.TYPESENSE_HOST }} + # TYPESENSE_PORT: ${{ vars.TYPESENSE_PORT }} + # TYPESENSE_API_KEY: ${{ secrets.TYPESENSE_API_KEY }} + # run: | + # echo "Typesense target is $TYPESENSE_PROTOCOL://$TYPESENSE_HOST:$TYPESENSE_PORT" \ No newline at end of file diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 0eda3caa5..527893ec6 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -224,12 +224,12 @@ const config: Config = { typesenseServerConfig: { nodes: [ { - host: "docs-search.hypelens.de", - port: 80, - protocol: "http", + host: process.env.TYPESENSE_HOST, + port: process.env.TYPESENSE_PORT, + protocol: process.env.TYPESENSE_PROTOCOL, }, ], - apiKey: "j2Q51UsLuh9guYtc4x147Mv5X74g4iSI", + apiKey: process.env.TYPESENSE_API_KEY, }, // Optional: Typesense search parameters: https://typesense.org/docs/0.24.0/api/search.html#search-parameters