Skip to content

Commit

Permalink
feat: 修改 Nuxt 配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwumm committed Jun 17, 2024
1 parent 9873aba commit 7262805
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
export default defineNuxtConfig({
runtimeConfig: {
public: {
baseUrl: 'https://dream-site.cn'
baseUrl: process.env.BASE_URL || 'http://localhost:3000'
}
},
// SEO 和 Meta
app: {
head: {
title: process.env.SITE_TITLE,
title: '程序员的梦中情站',
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
meta: [
{ name: 'keywords', content: process.env.SITE_KEYWORDS },
{ name: 'description', content: process.env.SITE_DESCRIPTION }
{ name: 'keywords', content: 'Nuxt.js,导航,网站' },
{ name: 'description', content: '致力于打造程序员的梦中情站' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: 'favicon.ico' }
Expand Down

0 comments on commit 7262805

Please sign in to comment.