diff --git a/packages/nuxt/src/core/templates.ts b/packages/nuxt/src/core/templates.ts index 52cb7a460d..383fc2c179 100644 --- a/packages/nuxt/src/core/templates.ts +++ b/packages/nuxt/src/core/templates.ts @@ -326,7 +326,7 @@ export const publicPathTemplate: NuxtTemplate = { filename: 'paths.mjs', getContents ({ nuxt }) { return [ - 'import { joinURL } from \'ufo\'', + 'import { joinRelativeURL as joinURL } from \'ufo\'', !nuxt.options.dev && 'import { useRuntimeConfig } from \'#internal/nitro\'', nuxt.options.dev diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 744180f331..54e032f65a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -855,7 +855,7 @@ importers: devDependencies: ufo: specifier: latest - version: 1.5.0 + version: 1.5.1 unplugin: specifier: latest version: 1.10.0 @@ -10616,10 +10616,6 @@ packages: resolution: {integrity: sha512-DffL94LsNOccVn4hyfRe5rdKa273swqeA5DJpMOeFmEn1wCDc7nAbbB0gXlgBCL7TNzeTv6G7XVWzan7iJtfig==} dev: true - /ufo@1.5.0: - resolution: {integrity: sha512-c7SxU8XB0LTO7hALl6CcE1Q92ZrLzr1iE0IVIsUa9SlFfkn2B2p6YLO6dLxOj7qCWY98PB3Q3EZbN6bEu8p7jA==} - dev: true - /ufo@1.5.1: resolution: {integrity: sha512-HGyF79+/qZ4soRvM+nHERR2pJ3VXDZ/8sL1uLahdgEDf580NkgiWOxLk33FetExqOWp352JZRsgXbG/4MaGOSg==}