← スキル一覧に戻る

nuxt-config
by leeovery
⭐ 1🍴 0📅 2026年1月20日
SKILL.md
name: nuxt-config description: Nuxt and app configuration files. Use when configuring nuxt.config.ts, app.config.ts, environment variables, runtime config, or understanding how configuration flows through the application.
Nuxt Configuration
Application configuration via nuxt.config.ts and app.config.ts.
Core Concepts
config.md - Complete configuration patterns
nuxt.config.ts
export default defineNuxtConfig({
ssr: false, // SPA mode
extends: [
'../../../nuxt-layers/base',
'../../../nuxt-layers/nuxt-ui',
'../../../nuxt-layers/x-ui',
],
modules: ['nuxt-auth-sanctum', '@nuxt/ui'],
components: [{ path: 'components', pathPrefix: false }],
sanctum: {
baseUrl: process.env.NUXT_PUBLIC_API_URL,
endpoints: { login: '/auth/login', user: '/auth/user' },
},
runtimeConfig: {
public: {
apiUrl: undefined, // Set via NUXT_PUBLIC_API_URL
},
},
})
app.config.ts
export default defineAppConfig({
repositories: {
leads: LeadRepository,
contacts: ContactRepository,
},
interceptors: {
request: [appendSource],
response: [errorHandler],
},
errorHandlers: {
401: async ({ flash }) => navigateTo('/auth/login'),
422: async ({ response }) => new ValidationError(response),
},
})
Environment Variables
NUXT_PUBLIC_API_URL=https://api.example.com
NUXT_PUBLIC_REPOSITORIES_LEADS_FETCH_OPTIONS_BASE_URL=https://leads-api.example.com
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です