assetPrefix and pathPrefix can't works seamlessly.
#33107
Unanswered
jiusanzhou
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Recently, I'm building landing pages for a github repository, and which deployed in gh-pages. So I must set
pathPrefixas the repo name, then I can visit the page by url:https://MYDOMAIN/REPONAMEWhen I use
cdn.jsdelivr.netas a CDN provider, setting theassetPrefixashttps://cdn.jsdelivr.net/gh/USERNAME/REPONAME@gh-pages. Things won't work well.I think we should make this more configurable. In normal situation, ask users to set
assetPrefixendswithpathPrefixmanually.Change the
getPublicPathfunction in get-public-path.ts like bellow:Beta Was this translation helpful? Give feedback.
All reactions