61 lines
2.2 KiB
TypeScript
61 lines
2.2 KiB
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
compatibilityDate: '2024-11-01',
|
|
devtools: { enabled: false },
|
|
|
|
future: {
|
|
compatibilityVersion: 3
|
|
},
|
|
|
|
// SSR (Server-Side Rendering) 모드 강제 - 네이버 Yeti 봇 100% 대응
|
|
ssr: true,
|
|
routeRules: {
|
|
'/admin': { headers: { 'X-Robots-Tag': 'noindex, nofollow' } },
|
|
'/admin/**': { headers: { 'X-Robots-Tag': 'noindex, nofollow' } }
|
|
},
|
|
|
|
// Windows 경로 구분자 대응 및 Nitro 번들링 안정화
|
|
nitro: {
|
|
externals: {
|
|
inline: [/[\\/]node_modules[\\/]nuxt[\\/]dist[\\/]/]
|
|
}
|
|
},
|
|
|
|
runtimeConfig: {
|
|
discordWebhookUrl: process.env.DISCORD_WEBHOOK_URL || 'https://discordapp.com/api/webhooks/1557204310369116210/9J4y96kmSbYNGtw5OxRgIz7InWcM8o3f8UX0Ad71-IyofwdS7tWmXkF7dj457-I8Ypiu',
|
|
public: {
|
|
siteName: '공부짝꿍',
|
|
siteDomain: process.env.SITE_DOMAIN || 'https://soohyun.cloud',
|
|
naverVerificationKey: process.env.NAVER_VERIFICATION_KEY || 'ec58dcc43a4785d3358d9e2b603fea6bea4d89a3'
|
|
}
|
|
},
|
|
|
|
app: {
|
|
head: {
|
|
htmlAttrs: {
|
|
lang: 'ko'
|
|
},
|
|
link: [
|
|
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
|
|
{ rel: 'shortcut icon', href: '/favicon.ico' },
|
|
{ rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png' },
|
|
{ rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png' },
|
|
{ rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' },
|
|
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
|
|
{ rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' },
|
|
{ rel: 'stylesheet', href: 'https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css' },
|
|
{ rel: 'stylesheet', href: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css' },
|
|
{ rel: 'stylesheet', href: '/css/theme.css' }
|
|
],
|
|
script: [
|
|
{ src: 'https://cdn.tailwindcss.com' }
|
|
],
|
|
meta: [
|
|
{ charset: 'utf-8' },
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0, maximum-scale=5.0, minimum-scale=1.0' },
|
|
{ name: 'format-detection', content: 'telephone=no' }
|
|
]
|
|
}
|
|
}
|
|
})
|