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

Problem: Reading the configuration file data, the return will be more '/' ? #4404

Closed
1 task done
WuChenDi opened this issue Aug 21, 2022 · 2 comments
Closed
1 task done

Comments

@WuChenDi
Copy link

What version of astro are you using?

1.0.5

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

yarn

What operating system are you using?

MAC

Describe the Bug

Hi guys, Why does environment variable fetching return more '/'?
For example, in the example I provided, I set /astro-page-template, but the actual return is /astro-page-template/

image

Link to Minimal Reproducible Example

https://hjfront.github.io/astro-page-template/

Participation

  • I am willing to submit a pull request for this issue.
@FredKSchott
Copy link
Member

FredKSchott commented Aug 21, 2022

This should be the configuration that you are looking for: https://docs.astro.build/en/reference/configuration-reference/#trailingslash

FYI there is a bug related to a dev & build mismatch that @matthewp is tracking down #4190 that you may also be impacted by here.

@WuChenDi
Copy link
Author

@FredKSchott Thanks for your reply, I tried this configuration, but I didn't get the results I wanted.

My current problem is that when reading the astro.config.mjs file, the jump in the link component gives an extra / result, but not this.

image
image
image
image

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