Skip to content

Commit

Permalink
add missing command to generate netlify redirects
Browse files Browse the repository at this point in the history
* use favicon.ico

* remove collator.ts - it is not used
  • Loading branch information
Sharqiewicz authored Oct 31, 2024
1 parent 934c19e commit e6f4702
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 231 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ Builds the app for production to the `dist` folder.\
It transpiles TypeScript, bundles React in production mode, splits and optimizes the builds for the best performance.

The build is minified and the filenames include the hashes.\
We call on `version.cjs` to show the commit version on the sidebar.\
We also create a file, on the fly, a file named `_redirects` that will serve the index.html instead of giving a 404 no
matter what URL the browser requests.

Expand Down
228 changes: 0 additions & 228 deletions collator.ts

This file was deleted.

Binary file removed favicon.png
Binary file not shown.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/favicon.png" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pendulum Chain Portal</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"packageManager": "[email protected]",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build": "tsc && vite build && yarn generate-netlify-redirects",
"generate-netlify-redirects": "echo '/* /index.html 200' > dist/_redirects",
"preview": "vite preview",
"lint": "eslint . --ext .ts,.tsx",
"lint:fix": "eslint . --ext .ts,.tsx --fix",
Expand Down

0 comments on commit e6f4702

Please sign in to comment.