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

Subdirectory deployment, unable to request JS and CSS #423

Open
1 task
xiyuvi opened this issue Jul 10, 2023 · 1 comment
Open
1 task

Subdirectory deployment, unable to request JS and CSS #423

xiyuvi opened this issue Jul 10, 2023 · 1 comment

Comments

@xiyuvi
Copy link

xiyuvi commented Jul 10, 2023

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.
@ddiu8081
Copy link
Member

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

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

2 participants