chatgpt-demo icon indicating copy to clipboard operation
chatgpt-demo copied to clipboard

Subdirectory deployment, unable to request JS and CSS

Open xiyuvi opened this issue 2 years ago • 1 comments

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

lQLPJw4C5SkVpv7NAw3NBk2wx5eTZUeSxLUEoWan3YCjAA_1613_781

Participation

  • [ ] I am willing to submit a pull request for this issue.

xiyuvi avatar Jul 10 '23 09:07 xiyuvi

You can set base to /ai in astro.config.mjs. See https://docs.astro.build/en/reference/configuration-reference/#base

ddiu8081 avatar Jul 11 '23 02:07 ddiu8081