anse-app / chatgpt-demo

Minimal web UI for ChatGPT.
https://chatgpt.ddiu.me
MIT License
8.01k stars 3.81k forks source link

Migrate to Astro v3 #444

Closed CNSeniorious000 closed 1 year ago

CNSeniorious000 commented 1 year ago

Describe the feature

There are many good features in Astro 3. I think it worthy to migrate chatgpt-demo to Astro 3, so that future developers forking this repository won't think it an unmaintained one.

I am going to make a PR containing astro migrations and other dependencies update. If somebody is going to stop me because of some reasons I ignored please tell me before I start, thank you!

Note that I've already tried Astro 3 on my own fork (demo here) of chatgpt-demo, which works well as usual without visible changes.

Additional context

I would update unocss and other dependencies by the way (maybe a few major versions). And I noticed that the docker image seems to be unmaintained for several patch versions. I will try fixing it at that time ~

Participation

CNSeniorious000 commented 1 year ago

Currently @astrojs/vercel and @astrojs/netlify only support edgeMiddleware, so /api endpoints can't be deployed as Edge Functions. What a pity.