contentlayerdev / contentlayer

Contentlayer turns your content into data - making it super easy to import MD(X) and CMS content in your app
https://www.contentlayer.dev
MIT License
3.31k stars 202 forks source link

unable to use remote files #579

Closed IIex-Lesquereux closed 9 months ago

IIex-Lesquereux commented 11 months ago

Hi, I have a problem, I want to get my blog feed by reading the remote repository file, I have exactly modeled the configuration in example ,but at runtime, I can't get the expected results. I can't read the file data under the remote repository at all.

system

windows 10

this is my package.json

{
  "name": "contentlayer",
  "version": "0.1.0",
  "private": true,
  "license": "MIT",
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint",
    "prepare": "husky install"
  },
  "lint-staged": {
    "*.{js,jsx,ts,tsx}": [
      "eslint --fix",
      "prettier --write"
    ],
    "*.{css,scss,json,md}": [
      "prettier --write"
    ]
  },
  "dependencies": {
    "contentlayer": "^0.3.4",
    "date-fns": "^2.30.0",
    "mdx-bundler": "^9.2.1",
    "next": "13.5.6",
    "next-contentlayer": "^0.3.4",
    "react": "^18",
    "react-dom": "^18",
    "rehype-external-links": "^3.0.0",
    "rehype-pretty-code": "^0.10.2",
    "remark-gfm": "^4.0.0",
    "shiki": "^0.14.5"
  },
  "devDependencies": {
    "@ianvs/prettier-plugin-sort-imports": "^4.1.1",
    "@tailwindcss/typography": "^0.5.10",
    "@types/node": "^20",
    "@types/react": "^18",
    "@types/react-dom": "^18",
    "@typescript-eslint/eslint-plugin": "^6.9.0",
    "@typescript-eslint/parser": "^6.9.0",
    "autoprefixer": "^10",
    "eslint": "^8",
    "eslint-config-next": "13.5.6",
    "eslint-config-prettier": "^9.0.0",
    "eslint-plugin-prettier": "^5.0.1",
    "husky": "8.0.3",
    "lint-staged": "14.0.1",
    "postcss": "^8",
    "prettier": "^3.0.3",
    "prettier-plugin-tailwindcss": "^0.5.6",
    "tailwindcss": "^3",
    "typescript": "^5"
  }
}
stale[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.