Skip to content

Commit ad6b951

Browse files
committed
docs: add link to PR
1 parent dc814c6 commit ad6b951

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/nitro.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export async function setupNitroBridge () {
143143
delete nitroConfig.alias['#build']
144144

145145
if (nuxt.options.generate.routes instanceof Function) {
146-
console.warn('It is recommended to migrate the `nuxt.generate.routes` function to the `nitro:config` hook instead.')
146+
console.warn('It is recommended to migrate the `generate.routes` function to the `nitro:config` hook instead. See https://github.com/nuxt/bridge/pull/475.')
147147
nitroConfig.prerender.routes.push(...await nuxt.options.generate.routes() || [])
148148
}
149149

@@ -174,7 +174,7 @@ export async function setupNitroBridge () {
174174
for (const file of publicFiles) {
175175
try {
176176
fsExtra.rmSync(join(clientDist, file))
177-
} catch {}
177+
} catch { }
178178
}
179179
}
180180

@@ -320,7 +320,7 @@ export async function setupNitroBridge () {
320320
} else {
321321
const distDir = resolve(nuxt.options.rootDir, 'dist')
322322
if (!existsSync(distDir)) {
323-
await fsp.symlink(nitro.options.output.publicDir, distDir, 'junction').catch(() => {})
323+
await fsp.symlink(nitro.options.output.publicDir, distDir, 'junction').catch(() => { })
324324
}
325325
}
326326
}

0 commit comments

Comments
 (0)