open:vercel.json

vercel.json

vercel.json 은 파일은 프로젝트 루트에 있어야 한다. (/web/ 이 아니다.)

설명 문서: https://vercel.com/docs/concepts/projects/project-configuration

{
  "installCommand": "if cd flutter; then git pull && cd .. ; else git clone https://github.com/flutter/flutter.git -b master; fi && ls && flutter/bin/flutter doctor && flutter/bin/flutter clean && flutter/bin/flutter config --enable-web",
  "buildCommand": "flutter/bin/flutter pub get && flutter/bin/flutter pub run build_runner build --delete-conflicting-outputs && flutter/bin/flutter build web --release",
  "outputDirectory": "build/web",
  "ignoreCommand": "if [ \"$VERCEL_ENV\" == \"prod\" ]; then exit 1; else exit 0; fi",
  "rewrites": [
    {
      "source": "/(.*)",
      "destination": "/"
    }
  ]
}


  • open/vercel.json.txt
  • 마지막으로 수정됨: 2023/05/07 09:15
  • 저자 MORO