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

当使用docker compose部署时,添加HEADSCRIPT变量后,貌似会缺一个} #171

Open
1 task
nixingshiguang opened this issue Jul 30, 2024 · 0 comments

Comments

@nixingshiguang
Copy link

How is Gemini Pro Chat deployed?

Docker

Describe the bug

使用docker compose部署,yaml文件如下:

version: "3.3"
services:
  geminiprochat:
    container_name: geminiprochat
    restart: always
    ports:
      - 3000:3000
    stdin_open: true
    tty: true
    environment:
      HEAD_SCRIPTS=<script src="https://excample.com/custom.js" defer ></script>
      #HEAD_SCRIPTS="<script src=\"https://excample.com/custom.js\" defer ></script>"
    image: babaohuang/geminiprochat:latest
networks: {}

试过用"包裹起来,也试过使用\转义src中的双引号,但是结果都会造成以下问题

Console Logs

日志:

Starting service...
Running script...
Server listening on http://0.0.0.0:3000
03:32:18 AM [ssr] SyntaxError: Missing } in template expression
    at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:119:18)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:468:14)
    at async link (node:internal/modules/esm/module_job:68:21)

Participation

  • I am willing to submit a pull request for this issue.
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

1 participant