chatgpt-demo
chatgpt-demo copied to clipboard
support for one-click installation in netlify?
Clear and concise description of the problem
some of us have problems with vercel because its timeout is less than 10 seconds and if the api takes a long time to respond, it marks error because of the 10 seconds timeout.
Maybe having another option like netlify we can try other environments.
Suggested solution
https://www.netlify.com/
Alternative
No response
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guide.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
According to https://docs.astro.build/en/guides/deploy/ , it should support deployment to Netlify, Vercel and other platforms that support SSR.
I'll look into the one-click deployment support for Netlify. If anyone wants to provide support for it on other platforms, PR welcome.
I'm wondering if netlify
can be visited in China mainland directly, if so I'd like to try.
You can switch to the feat/netlify
branch for deployment #180
You can switch to the
feat/netlify
branch for deployment #180
When I click on the "Deploy to Netlify" button, it makes the request to Netlify with the "main" version.
if I make the change in the URL of the button, like this: https://app.netlify.com/start/deploy?repository=https://github.com/ddiu8081/chatgpt-demo/tree/feat/netlify&ref=feat/netlify&env%5BOPEN_API_KEY%5D=xxx
I get this error:
Failed to deploy to Netlify with the following error.
The deployed address is https://mellow-dieffenbachia-42ad69..app.
The error message is as follows.
{
"errorType": "ReferenceError",
"errorMessage": "crypto is not defined",
"trace": [
"ReferenceError: crypto is not defined",
" at digestMessage (/var/task/.netlify/functions-internal/entry.js:90284:3)",
" at generateSignature (/var/task/.netlify/functions-internal/entry.js:90297:16)",
" at verifySignature (/var/task/.netlify/functions-internal/entry.js:90300:29)",
" at Module.post (/var/task/.netlify/functions-internal/entry.js:90513:14)",
" at async call (/var/task/.netlify/functions-internal/entry.js:86517:20)",
" at async App.#callEndpoint (/var/task/.netlify/functions-internal/entry.js:86844:20)",
" at async Runtime.myHandler [as handler] (/var/task/.netlify/functions-internal/entry.js:86938:22)"
]
}
Failed to deploy to Netlify with the following error.
The deployed address is https://mellow-dieffenbachia-42ad69..app.
The error message is as follows.
{ "errorType": "ReferenceError", "errorMessage": "crypto is not defined", "trace": [ "ReferenceError: crypto is not defined", " at digestMessage (/var/task/.netlify/functions-internal/entry.js:90284:3)", " at generateSignature (/var/task/.netlify/functions-internal/entry.js:90297:16)", " at verifySignature (/var/task/.netlify/functions-internal/entry.js:90300:29)", " at Module.post (/var/task/.netlify/functions-internal/entry.js:90513:14)", " at async call (/var/task/.netlify/functions-internal/entry.js:86517:20)", " at async App.#callEndpoint (/var/task/.netlify/functions-internal/entry.js:86844:20)", " at async Runtime.myHandler [as handler] (/var/task/.netlify/functions-internal/entry.js:86938:22)" ] }
Fixed in https://github.com/ddiu8081/chatgpt-demo/pull/184
You can switch to the
feat/netlify
branch for deployment #180When I click on the "Deploy to Netlify" button, it makes the request to Netlify with the "main" version.
if I make the change in the URL of the button, like this: https://app.netlify.com/start/deploy?repository=https://github.com/ddiu8081/chatgpt-demo/tree/feat/netlify&ref=feat/netlify&env%5BOPEN_API_KEY%5D=xxx
I get this error:
You can achieve this functionality by following these steps:
- Fork this project and create a new website on Netlify and connect it with the GitHub account.
- Configure environment variables in the project settings.
- Select "GitHub" as the continuous integration provider in the deployment settings and select the branch to deploy (e.g.
feat/netlify
). - Select the default build command and output directory.
- Click the "Deploy site" button to start the deployment process.
You can switch to the
feat/netlify
branch for deployment #180When I click on the "Deploy to Netlify" button, it makes the request to Netlify with the "main" version.
if I make the change in the URL of the button, like this: https://app.netlify.com/start/deploy?repository=https://github.com/ddiu8081/chatgpt-demo/tree/feat/netlify&ref=feat/netlify&env%5BOPEN_API_KEY%5D=xxx
I get this error:
The netlify deployment button seems to have no branch specified, only environment variable population and repository address. https://docs.netlify.com/site-deploys/create-deploys/#deploy-to-netlify-button
I have deployed one, but no matter what I input, there is no output, and nothing else, neither keep showing AI thinking...
.
I didn't find the log console in netlify, so what's the problem probably?
broswer console showed:
POST https://xxx.netlify.app/api/generate 502
A @ Generator.3ad01aed.js:69
await in A(异步)
b @ Generator.3ad01aed.js:69
F @ Generator.3ad01aed.js:71
J @ web.49ca3d74.js:1
I have deployed one, but no matter what I input, there is no output, and nothing else, neither keep showing
AI thinking...
. I didn't find the log console in netlify, so what's the problem probably?broswer console showed:
POST https://xxx.netlify.app/api/generate 502 A @ Generator.3ad01aed.js:69 await in A(异步) b @ Generator.3ad01aed.js:69 F @ Generator.3ad01aed.js:71 J @ web.49ca3d74.js:1
Everything I set up seems work fine.
@yzh990918 sir, this way, https://cancanneed.netlify.app/
@yzh990918 sir, this way, https://cancanneed.netlify.app/
Could it be an issue with your http-proxy??
@yzh990918 sir, this way, https://cancanneed.netlify.app/
Could it be an issue with your http-proxy??
I can use it without any proxy, not really understand your hint
Netlify deployment still has some problems, it is recommended to use Vercel first 🙏
To be confirmed, maybe a bug in https://github.com/withastro/astro/issues/6506
Netlify deployment still has some problems, it is recommended to use Vercel first 🙏
We have temporarily locked the version of "@astrojs/netlify": "2.0.0"
and can now deploy normally through Netlify !. However, we will continue to follow up on this bug.