Skip to content

Commit

Permalink
fix: typo on https example (#8723)
Browse files Browse the repository at this point in the history
  • Loading branch information
edimitchel committed Jun 22, 2022
1 parent 7e899d0 commit 6105471
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guide/build.md
Expand Up @@ -207,7 +207,7 @@ A single static [base](#public-base-path) isn't enough in these scenarios. Vite
relative: true
// Static base
// type: string, default: undefined
url: 'https:/cdn.domain.com/'
url: 'https://cdn.domain.com/'
// Dynamic base to be used for paths inside JS
// type: (url: string) => string, default: undefined
runtime: (url: string) => `window.__toCdnUrl(${url})`
Expand All @@ -226,12 +226,12 @@ If the hashed assets and public files aren't deployed together, options for each
buildAdvancedBaseOptions: {
assets: {
relative: true
url: 'https:/cdn.domain.com/assets',
url: 'https://cdn.domain.com/assets',
runtime: (url: string) => `window.__assetsPath(${url})`
},
public: {
relative: false
url: 'https:/www.domain.com/',
url: 'https://www.domain.com/',
runtime: (url: string) => `window.__publicPath + ${url}`
}
}
Expand Down

0 comments on commit 6105471

Please sign in to comment.