diff --git a/packages/nuxt/src/generators/application/files/src/server/api/greet.ts__tmpl__ b/packages/nuxt/src/generators/application/files/src/server/api/greet.ts__tmpl__ index da8c6a451a6d2..9109551275b04 100644 --- a/packages/nuxt/src/generators/application/files/src/server/api/greet.ts__tmpl__ +++ b/packages/nuxt/src/generators/application/files/src/server/api/greet.ts__tmpl__ @@ -2,7 +2,7 @@ import { defineEventHandler, getQuery } from 'h3'; export default defineEventHandler((event) => { const q = getQuery(event); - const name = q.name || 'World'; + const projectName = q.name || 'World'; return { message: `Hello ${projectName}`,