chatgpt-demo
chatgpt-demo copied to clipboard
Subdirectory deployment, unable to request JS and CSS
How is Anse deployed?
Others (Specify in description)
Describe the bug
I have deployed the node project in a subdirectory with the domain name xxx.com/ai, but the resources inside are still requesting the root path, so the request cannot be made. May I know how to modify it so that GPT can support sub paths
Console Logs
Participation
- [ ] I am willing to submit a pull request for this issue.
You can set base to /ai in astro.config.mjs. See https://docs.astro.build/en/reference/configuration-reference/#base