강의

멘토링

커뮤니티

Cộng đồng Hỏi & Đáp của Inflearn

Hình ảnh hồ sơ của cheoljinan
cheoljinan

câu hỏi đã được viết

Phát triển blog công nghệ với Gatsby dựa trên React

Thêm phần tử liên kết Canonical

"siteMetadata.siteUrl" must be a valid uri 에러

Viết

·

523

1

 

 ERROR #10122  CONFIG

The site's gatsby-config.js failed validation:

"siteMetadata.siteUrl" must be a valid uri

 

not finished open and validate gatsby-configs, load plugins - 0.030s

빌드시 이런오류가 발생하는데, 로컬주소로 바꿔도 오류가 나더라구요... 어떤 방식으로 유효성을 체크하는 걸까요?

 

 

module.exports = {
  siteMetadata: {
    title: `철진난만한 혜심의 블로그`,
    description: `주니어 개발자 혜심의 블로그입니다.`,
    author: `Haesim`,
    siteUrl: '<https://my-website-link.com>', // 배포 후 변경 예정
  },
  plugins: [
    {
      resolve: 'gatsby-plugin-typescript',
      options: {
        isTSX: true,
        allExtensions: true,
      },
    },
    `gatsby-plugin-emotion`,
    `gatsby-plugin-react-helmet`,
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        name: `contents`,
        path: `${__dirname}/contents`,
      },
    },
    `gatsby-transformer-sharp`,
    `gatsby-plugin-sharp`,
    {
      resolve: `gatsby-transformer-remark`,
      options: {
        plugins: [
          {
            resolve: 'gatsby-remark-smartypants',
            options: {
              dashes: 'oldschool',
            },
          },
          {
            resolve: 'gatsby-remark-prismjs',
            options: {
              classPrefix: 'language-',
            },
          },
          {
            resolve: 'gatsby-remark-images',
            options: {
              maxWidth: 768,
              quality: 100,
              withWebp: true,
            },
          },
          {
            resolve: 'gatsby-remark-copy-linked-files',
            options: {},
          },
          {
            resolve: 'gatsby-remark-external-links',
            options: {
              target: '_blank',
              rel: 'nofollow',
            },
          },
          {
            resolve: `gatsby-plugin-sharp`,
            options: {
              defaults: {
                formats: ['auto', 'webp'],
                quality: 100,
                placeholder: 'blurred',
              },
            },
          },
          {
            resolve: `gatsby-source-filesystem`,
            options: {
              name: `contents`,
              path: `${__dirname}/contents`,
            },
          },
          {
            resolve: `gatsby-source-filesystem`,
            options: {
              name: `images`,
              path: `${__dirname}/static`,
            },
          },
          {
            resolve: `gatsby-source-filesystem`,
            options: {
              name: `contents`,
              path: `${__dirname}/contents`,
            },
          },
          {
            resolve: 'gatsby-plugin-canonical-urls',
            options: {
              siteUrl: '<https://my-website.com/>',
              stripQueryString: true,
            },
          },
          'gatsby-plugin-sitemap',
          `gatsby-transformer-sharp`,
          `gatsby-plugin-image`,
        ],
      },
    },
  ],
}
빌드오류blogmetadatasiteUrlGatsby

Câu trả lời 2

1

cheoljinan님의 프로필 이미지
cheoljinan
Người đặt câu hỏi

꺽쇠( <>)가 문제였네요;;ㅎㅎㅎ 감사합니다...

0

ji5485님의 프로필 이미지
ji5485
Người chia sẻ kiến thức

안녕하세요, cheoljin.an님!

질문을 너무 늦게 확인했네요 죄송합니다 ㅠㅠ

스스로 문제점을 찾아 해결해 정말 다행입니다!

Hình ảnh hồ sơ của cheoljinan
cheoljinan

câu hỏi đã được viết

Đặt câu hỏi