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

[Feature] 可以支持client-side only嘛 #1000

Closed
abrasumente233 opened this issue Apr 22, 2023 · 7 comments
Closed

[Feature] 可以支持client-side only嘛 #1000

abrasumente233 opened this issue Apr 22, 2023 · 7 comments

Comments

@abrasumente233
Copy link

abrasumente233 commented Apr 22, 2023

类似 chatbot-ui,所有api请求直接在浏览器端跟openai通信,不通过host server中转,api key也储存在浏览器,这样就不用担心在host上预填api key,服务器被攻击,或者code太弱导致api key被滥用。

@Yidadaa
Copy link
Collaborator

Yidadaa commented Apr 22, 2023

https://nextjs.org/docs/advanced-features/static-html-export

项目暂时不支持,可以导出静态文件,但是没有对接口做兼容,你可以研究下怎么处理。

@abrasumente233
Copy link
Author

好诶,感谢

@abrasumente233
Copy link
Author

不过我最近时间不多,等不及的朋友可以先研究下

Yidadaa added a commit that referenced this issue May 14, 2023
refactor: #1000 #1179 api layer for client-side only mode and local models
Endlessworld pushed a commit to Endlessworld/ChatGPT-Next-Web that referenced this issue May 17, 2023
Endlessworld pushed a commit to Endlessworld/ChatGPT-Next-Web that referenced this issue May 17, 2023
refactor: ChatGPTNextWeb#1000 ChatGPTNextWeb#1179 api layer for client-side only mode and local models
@guotao
Copy link

guotao commented Jun 8, 2023

怎么用client-side?没看到配置项。

@Yidadaa Yidadaa mentioned this issue Jun 12, 2023
Yidadaa added a commit that referenced this issue Jun 13, 2023
feat: #1000 ready to support client-side only
@Yidadaa
Copy link
Collaborator

Yidadaa commented Jun 13, 2023

现已支持通过 yarn export 构建纯静态产物,可以直接扔到任意静态文件服务器上部署。

@Yidadaa Yidadaa closed this as completed Jun 13, 2023
jinker pushed a commit to jinker/ChatGPT-Next-Web that referenced this issue Jun 19, 2023
jinker pushed a commit to jinker/ChatGPT-Next-Web that referenced this issue Jun 19, 2023
jinker pushed a commit to jinker/ChatGPT-Next-Web that referenced this issue Jun 19, 2023
alchemist139 pushed a commit to alchemist139/ChatGPT-Next-Web that referenced this issue Sep 21, 2023
alchemist139 pushed a commit to alchemist139/ChatGPT-Next-Web that referenced this issue Sep 21, 2023
alchemist139 pushed a commit to alchemist139/ChatGPT-Next-Web that referenced this issue Sep 21, 2023
chenzeyu pushed a commit to neutronsg/ChatGPT-Next-Web that referenced this issue Nov 8, 2023
chenzeyu pushed a commit to neutronsg/ChatGPT-Next-Web that referenced this issue Nov 8, 2023
@1158660955
Copy link

1158660955 commented Nov 28, 2023

现已支持通过 yarn export 构建纯静态产物,可以直接扔到任意静态文件服务器上部署。

执行yarn export 后构建的.next文件,要怎么直接部署到nginx?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


It is now supported to build purely static products through yarn export, which can be directly deployed on any static file server.

Should the .next file built after executing yarn export be deployed directly to nginx?

gaogao1030 pushed a commit to gaogao1030/ChatGPT-Next-Web that referenced this issue May 16, 2024
gaogao1030 pushed a commit to gaogao1030/ChatGPT-Next-Web that referenced this issue May 16, 2024
gaogao1030 pushed a commit to gaogao1030/ChatGPT-Next-Web that referenced this issue May 16, 2024
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

5 participants