Skip to content

Commit 8ab30e6

Browse files
committed
chore: change netlify config
1 parent 4b1eb65 commit 8ab30e6

File tree

4 files changed

+246
-17
lines changed

4 files changed

+246
-17
lines changed

.github/workflows/release.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -150,20 +150,6 @@ jobs:
150150
mkdir -p website
151151
unzip website.zip -d website
152152
153-
- name: Handle Netlify redirect
154-
run: |
155-
echo "[[redirects]]
156-
from = \"/algod/*\"
157-
to = \"http://localhost:4001/:splat\"
158-
status = 200
159-
force = true
160-
headers = {X-Algo-Api-Token = \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}
161-
162-
[[redirects]]
163-
from = \"/*\"
164-
to = \"/index.html\"
165-
status = 200" > artifacts/website/netlify.toml
166-
167153
- name: Deploy website to Netlify
168154
run: |
169155
npx netlify-cli deploy --site ${{ secrets.NETLIFY_SITE_ID }} --auth ${{ secrets.NETLIFY_AUTH_TOKEN }} --dir artifacts/website --alias staging

netlify.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[[redirects]]
2+
from = "/algod/*"
3+
to = "http://localhost:4001/:splat"
4+
status = 200
5+
force = true
6+
headers = {X-Algo-Api-Token = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
7+
8+
[[redirects]]
9+
from = "/*"
10+
to = "/index.html"
11+
status = 200

package-lock.json

Lines changed: 232 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"build:2-svg": "npx --yes @svgr/cli --config-file .svgrrc.cjs --typescript --out-dir src/features/common/components/svg src/assets/svg --no-index --filename-case kebab --jsx-runtime automatic",
1212
"build:4-tsc": "tsc",
1313
"build:5-vite": "vite build",
14+
"build:6-netlify": "cpy netlify.toml dist",
1415
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
1516
"lint:fix": "npm run lint -- --fix",
1617
"preview": "vite preview",
@@ -78,6 +79,7 @@
7879
"autoprefixer": "^10.4.18",
7980
"better-npm-audit": "^3.7.3",
8081
"conventional-changelog-conventionalcommits": "^7.0.2",
82+
"cpy-cli": "^5.0.0",
8183
"eslint": "^8.56.0",
8284
"eslint-config-prettier": "^9.1.0",
8385
"eslint-plugin-prettier": "^5.1.3",
@@ -157,4 +159,4 @@
157159
"semantic-release-export-data"
158160
]
159161
}
160-
}
162+
}

0 commit comments

Comments
 (0)