0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ReactアプリをKurocoにデプロイする際に必要なbuild.ymlについて

Posted at

はじめに

本記事では、Reactで作成したアプリをKurocoへデプロイする際に必要なbuild.ymlについてメモした記事です。

build.ymlの内容以外は、Kurocoビギナーズガイドと同じ内容なので、そちらをご参照ください。

nuxt3のテンプレートを元に、YAMLファイルを修正

nuxt3のテンプレートに記載されている、部分を下記のように修正することで、デプロイされます。

nuxt3テンプレート
      - name: Generate
        run: npm run generate
      - name: Zip artifact for upload
        run: cd ./.output/public && zip ../../dist.zip . -r
修正内容
      - name: Generate
        run: npm run build
      - name: Zip artifact for upload
        run: cd ./build && zip ../dist.zip . -r
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?