Skip to content

Commit

Permalink
feat: add node version config
Browse files Browse the repository at this point in the history
  • Loading branch information
radyakaze committed Aug 20, 2024
1 parent 54a0a01 commit 96a430c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default defineNuxtModule<ModuleOptions>({

const serverConfigPath = await resolver.resolvePath('server.config', {
cwd: nuxt.options.rootDir,
extensions: ['.js', '.mjs', '.ts']
extensions: ['.js', '.mjs', '.ts'],
})

nuxt.hook('nitro:config', async (config) => {
Expand Down
6 changes: 3 additions & 3 deletions src/runtime/utils/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const logStyles: Record<string, { symbol: string, color: Chalk }> = {
success: { symbol: '\u2714', color: chalk.green },
warn: { symbol: '\u26A0', color: chalk.yellow },
error: { symbol: '\u2716', color: chalk.red },
start: { symbol: '\u25B6', color: chalk.magenta }
start: { symbol: '\u25B6', color: chalk.magenta },
}

export default createConsola({
Expand All @@ -16,7 +16,7 @@ export default createConsola({
log(logObj) {
const style = logStyles[logObj.type] || logStyles.log
console.log(`${style.color(style.symbol)} ${style.color('[Nuxt Proxy Party]')}:`, logObj.args.join(' '))
}
}
},
},
],
})

0 comments on commit 96a430c

Please sign in to comment.