diff --git a/src/module.ts b/src/module.ts index 5efc926..aada2d8 100644 --- a/src/module.ts +++ b/src/module.ts @@ -29,7 +29,7 @@ export default defineNuxtModule({ let serverConfig = `export default []` - consola.info('Nuxt Proxy Party: Load server.config') + consola.start('Nuxt Proxy Party: Started') try { serverConfig = await readFile(serverConfigPath, 'utf8') } diff --git a/src/runtime/server/plugin.ts b/src/runtime/server/plugin.ts index 727b251..82a07bf 100644 --- a/src/runtime/server/plugin.ts +++ b/src/runtime/server/plugin.ts @@ -33,6 +33,8 @@ export default defineNitroPlugin(async ({ router }) => { const handler = proxyHandler(config) router.use(config.baseUrl, handler) router.use(`${config.baseUrl}/**`, handler) + + consola.success(`[Nuxt Proxy Party] Proxy created: ${config.baseUrl} -> ${config.target}`) }) } }