mirror of
https://github.com/harivansh-afk/Habit-Tracker.git
synced 2026-04-15 05:02:10 +00:00
vercel deployment changes
This commit is contained in:
parent
f1ca72a782
commit
e8e5e241bf
4 changed files with 16 additions and 9 deletions
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"homepage": "https://harivansh-afk.github.io/habit-tracker",
|
||||
"name": "habit-tracker-fullstack",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
|
|
@ -8,9 +7,7 @@
|
|||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"lint": "eslint .",
|
||||
"preview": "vite preview",
|
||||
"predeploy": "npm run build",
|
||||
"deploy": "gh-pages -d dist"
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"lucide-react": "^0.344.0",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { StrictMode } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { HashRouter } from 'react-router-dom';
|
||||
import { BrowserRouter } from 'react-router-dom';
|
||||
import App from './App';
|
||||
import './index.css';
|
||||
|
||||
|
|
@ -9,8 +9,8 @@ if (!rootElement) throw new Error('Failed to find the root element');
|
|||
|
||||
createRoot(rootElement).render(
|
||||
<StrictMode>
|
||||
<HashRouter>
|
||||
<BrowserRouter>
|
||||
<App />
|
||||
</HashRouter>
|
||||
</BrowserRouter>
|
||||
</StrictMode>
|
||||
);
|
||||
11
vercel.json
Normal file
11
vercel.json
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/(.*)",
|
||||
"destination": "/index.html"
|
||||
}
|
||||
],
|
||||
"buildCommand": "npm run build",
|
||||
"outputDirectory": "dist",
|
||||
"framework": "vite"
|
||||
}
|
||||
|
|
@ -6,6 +6,5 @@ export default defineConfig({
|
|||
plugins: [react()],
|
||||
optimizeDeps: {
|
||||
exclude: ['lucide-react'],
|
||||
},
|
||||
base: '/Habit-Tracker/',
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue