• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

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

22.02.27 18:52 작성 조회수 383

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`,
        ],
      },
    },
  ],
}

답변 2

·

답변을 작성해보세요.

1

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

0

안녕하세요, cheoljin.an님!

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

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