diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..1016208 --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +PUBLIC_URL=https://visual-framework.github.io/vf-react \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5301db4..65c0ac6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,6 +9,7 @@ on: env: CI: true + PUBLIC_URL: /vf-react jobs: # test: @@ -44,8 +45,10 @@ jobs: run: yarn install - name: Build page run: yarn build + env: + PUBLIC_URL: /vf-react - name: Deploy to gh-pages uses: peaceiris/actions-gh-pages@v3 with: deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY_150525 }} - publish_dir: ./build \ No newline at end of file + publish_dir: ./build diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b7dab5e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +build \ No newline at end of file diff --git a/package.json b/package.json index 38c62f8..c2aa339 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "vf-react", "version": "0.1.0", "private": true, + "homepage": "https://visual-framework.github.io/vf-react/", "dependencies": { "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..1944785 --- /dev/null +++ b/public/404.html @@ -0,0 +1,24 @@ + + + + + Visual Framework React + + + + + \ No newline at end of file diff --git a/public/index.html b/public/index.html index 6551aeb..8020c52 100644 --- a/public/index.html +++ b/public/index.html @@ -3,7 +3,25 @@ - + + + + +