Skip to content

Commit eb78585

Browse files
author
Jakub Łobos
committed
add github pages
1 parent 81947f9 commit eb78585

File tree

2 files changed

+41
-37
lines changed

2 files changed

+41
-37
lines changed

package.json

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,38 @@
11
{
2-
"name": "agency",
3-
"private": true,
4-
"version": "0.0.0",
5-
"type": "module",
6-
"scripts": {
7-
"dev": "vite",
8-
"build": "tsc -b && vite build",
9-
"lint": "eslint .",
10-
"preview": "vite preview"
11-
},
12-
"dependencies": {
13-
"@stitches/react": "^1.2.8",
14-
"i18next": "^25.3.6",
15-
"react": "^19.1.0",
16-
"react-dom": "^19.1.0",
17-
"react-i18next": "^15.6.1",
18-
"react-icons": "^5.5.0",
19-
"react-router-dom": "^7.6.3"
20-
},
21-
"devDependencies": {
22-
"@eslint/js": "^9.30.1",
23-
"@types/react": "^19.1.8",
24-
"@types/react-dom": "^19.1.6",
25-
"@vitejs/plugin-react": "^4.6.0",
26-
"eslint": "^9.30.1",
27-
"eslint-plugin-react-hooks": "^5.2.0",
28-
"eslint-plugin-react-refresh": "^0.4.20",
29-
"globals": "^16.3.0",
30-
"prettier": "^3.6.2",
31-
"typescript": "~5.8.3",
32-
"typescript-eslint": "^8.35.1",
33-
"vite": "^7.0.3"
34-
}
2+
"name": "agency",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "tsc -b && vite build",
9+
"lint": "eslint .",
10+
"preview": "vite preview",
11+
"predeploy": "npm run build",
12+
"deploy": "gh-pages -d dist"
13+
},
14+
"dependencies": {
15+
"@stitches/react": "^1.2.8",
16+
"i18next": "^25.3.6",
17+
"react": "^19.1.0",
18+
"react-dom": "^19.1.0",
19+
"react-i18next": "^15.6.1",
20+
"react-icons": "^5.5.0",
21+
"react-router-dom": "^7.6.3"
22+
},
23+
"devDependencies": {
24+
"@eslint/js": "^9.30.1",
25+
"@types/react": "^19.1.8",
26+
"@types/react-dom": "^19.1.6",
27+
"@vitejs/plugin-react": "^4.6.0",
28+
"eslint": "^9.30.1",
29+
"eslint-plugin-react-hooks": "^5.2.0",
30+
"eslint-plugin-react-refresh": "^0.4.20",
31+
"gh-pages": "^6.3.0",
32+
"globals": "^16.3.0",
33+
"prettier": "^3.6.2",
34+
"typescript": "~5.8.3",
35+
"typescript-eslint": "^8.35.1",
36+
"vite": "^7.0.3"
37+
}
3538
}

vite.config.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { defineConfig } from 'vite'
2-
import react from '@vitejs/plugin-react'
1+
import react from "@vitejs/plugin-react";
2+
import { defineConfig } from "vite";
33

44
// https://vite.dev/config/
55
export default defineConfig({
6-
plugins: [react()],
7-
})
6+
plugins: [react()],
7+
base: "/agency/",
8+
});

0 commit comments

Comments
 (0)