diff --git a/package-lock.json b/package-lock.json index bb0b073..d667618 100644 --- a/package-lock.json +++ b/package-lock.json @@ -65,6 +65,7 @@ }, "devDependencies": { "@tailwindcss/vite": "4.1.12", + "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "4.7.0", "gh-pages": "^6.3.0", "tailwindcss": "4.1.12", @@ -3408,6 +3409,16 @@ "csstype": "^3.2.2" } }, + "node_modules/@types/react-dom": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", + "devOptional": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.2.0" + } + }, "node_modules/@types/react-transition-group": { "version": "4.4.12", "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.12.tgz", diff --git a/package.json b/package.json index 34602e7..b8ec1d9 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,12 @@ { "name": "handyman", - "homepage": "https://dadobos.github.io/handyman/", + "homepage": "https://dadobos.github.io/handyman", "private": true, "version": "0.0.1", "type": "module", "scripts": { "predeploy": "npm run build", - "deploy": "gh-pages -d build", - "build": "vite build", - "dev": "vite" + "deploy": "gh-pages -d dist" }, "dependencies": { "@emotion/react": "11.14.0", @@ -68,6 +66,7 @@ }, "devDependencies": { "@tailwindcss/vite": "4.1.12", + "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "4.7.0", "gh-pages": "^6.3.0", "tailwindcss": "4.1.12", diff --git a/src/app/routes.ts b/src/app/routes.ts index 3dbb74f..836be0f 100644 --- a/src/app/routes.ts +++ b/src/app/routes.ts @@ -18,4 +18,6 @@ export const router = createBrowserRouter([ { path: "contact", Component: Contact }, ], }, -]); +], { + basename: import.meta.env.BASE_URL +}); \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 4ccceb0..4090bde 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,9 +1,11 @@ +/// import { defineConfig } from 'vite' import path from 'path' import tailwindcss from '@tailwindcss/vite' import react from '@vitejs/plugin-react' export default defineConfig({ + base: '/handyman/', // Set the base path for the application to ensure correct asset loading when deployed to GitHub Pages plugins: [ // The React and Tailwind plugins are both required for Make, even if // Tailwind is not being actively used – do not remove them