Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Sep 16, 2022
1 parent 7481855 commit c72701e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/nuxi/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ export default defineNuxtCommand({
await buildNuxt(nuxt)

if (args.prerender) {
// TODO: revisit later if/when nuxt build --prerender will output hybrid
const dir = nitro?.options.output.publicDir
const publicDir = dir ? relative(rootDir, dir) : '.output/public'
const publicDir = dir ? relative(process.cwd(), dir) : '.output/public'
consola.success(`You can now deploy \`${publicDir}\` to any static hosting!`)
}
}
Expand Down

0 comments on commit c72701e

Please sign in to comment.