fix(nuxt): use joinRelativeURL for build assets (#26282)

This commit is contained in:
Daniel Roe 2024-03-15 18:31:29 -07:00 committed by GitHub
parent 92929cee17
commit 0362ebf43c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -326,7 +326,7 @@ export const publicPathTemplate: NuxtTemplate = {
filename: 'paths.mjs', filename: 'paths.mjs',
getContents ({ nuxt }) { getContents ({ nuxt }) {
return [ return [
'import { joinURL } from \'ufo\'', 'import { joinRelativeURL as joinURL } from \'ufo\'',
!nuxt.options.dev && 'import { useRuntimeConfig } from \'#internal/nitro\'', !nuxt.options.dev && 'import { useRuntimeConfig } from \'#internal/nitro\'',
nuxt.options.dev nuxt.options.dev

View File

@ -855,7 +855,7 @@ importers:
devDependencies: devDependencies:
ufo: ufo:
specifier: latest specifier: latest
version: 1.5.0 version: 1.5.1
unplugin: unplugin:
specifier: latest specifier: latest
version: 1.10.0 version: 1.10.0
@ -10616,10 +10616,6 @@ packages:
resolution: {integrity: sha512-DffL94LsNOccVn4hyfRe5rdKa273swqeA5DJpMOeFmEn1wCDc7nAbbB0gXlgBCL7TNzeTv6G7XVWzan7iJtfig==} resolution: {integrity: sha512-DffL94LsNOccVn4hyfRe5rdKa273swqeA5DJpMOeFmEn1wCDc7nAbbB0gXlgBCL7TNzeTv6G7XVWzan7iJtfig==}
dev: true dev: true
/ufo@1.5.0:
resolution: {integrity: sha512-c7SxU8XB0LTO7hALl6CcE1Q92ZrLzr1iE0IVIsUa9SlFfkn2B2p6YLO6dLxOj7qCWY98PB3Q3EZbN6bEu8p7jA==}
dev: true
/ufo@1.5.1: /ufo@1.5.1:
resolution: {integrity: sha512-HGyF79+/qZ4soRvM+nHERR2pJ3VXDZ/8sL1uLahdgEDf580NkgiWOxLk33FetExqOWp352JZRsgXbG/4MaGOSg==} resolution: {integrity: sha512-HGyF79+/qZ4soRvM+nHERR2pJ3VXDZ/8sL1uLahdgEDf580NkgiWOxLk33FetExqOWp352JZRsgXbG/4MaGOSg==}