Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<!doctype html>
<html lang="en">
<html lang="es">

<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title>UpSkill</title>


<title>Up-Skill - Plataforma de Cursos Online</title>
<meta name="description" content="Aprende nuevas habilidades con cursos online de calidad. Programación, desarrollo web y más con profesores expertos." />

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"prebuild": "node scripts/generate-sitemap.js",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"tailwind:init": "tailwindcss init -p",
Expand All @@ -19,7 +20,8 @@
"build-storybook": "storybook build",
"cy:run": "cypress run",
"cy:open": "cypress open",
"test:e2e:local": "start-server-and-test preview http://localhost:4173 cy:run"
"test:e2e:local": "start-server-and-test preview http://localhost:4173 cy:run",
"sitemap": "node scripts/generate-sitemap.js"
},
"dependencies": {
"@blocknote/core": "^0.37.0",
Expand All @@ -33,9 +35,10 @@
"lucide-react": "^0.534.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-helmet-async": "^2.0.5",
"react-hook-form": "^7.62.0",
"react-hot-toast": "^2.6.0",
"react-router-dom": "^7.7.0",
"react-router-dom": "^7.12.0",
"recharts": "^3.1.2",
"tailwind-merge": "^3.3.1",
"three": "^0.179.1",
Expand Down Expand Up @@ -82,7 +85,8 @@
"pnpm": {
"overrides": {
"glob": "^10.5.0",
"systeminformation": ">=5.27.14"
"systeminformation": ">=5.27.14",
"qs": ">=6.14.1"
}
},
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
Expand Down
67 changes: 54 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/img/og-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
Allow: /

Sitemap: https://up-skill.app/sitemap.xml
47 changes: 47 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">

<url>
<loc>https://up-skill.app/</loc>
<lastmod>2026-01-13</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://up-skill.app/about</loc>
<lastmod>2026-01-13</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://up-skill.app/faq</loc>
<lastmod>2026-01-13</lastmod>
<changefreq>monthly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>https://up-skill.app/contact</loc>
<lastmod>2026-01-13</lastmod>
<changefreq>monthly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>https://up-skill.app/courses</loc>
<lastmod>2026-01-13</lastmod>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>https://up-skill.app/login</loc>
<lastmod>2026-01-13</lastmod>
<changefreq>yearly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://up-skill.app/register</loc>
<lastmod>2026-01-13</lastmod>
<changefreq>yearly</changefreq>
<priority>0.5</priority>
</url>
</urlset>
43 changes: 43 additions & 0 deletions scripts/generate-sitemap.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/usr/bin/env node

import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

const baseUrl = 'https://up-skill.app';
const currentDate = new Date().toISOString().split('T')[0];

const staticRoutes = [
{ path: '/', priority: '1.0', changefreq: 'weekly' },
{ path: '/about', priority: '0.8', changefreq: 'monthly' },
{ path: '/faq', priority: '0.7', changefreq: 'monthly' },
{ path: '/contact', priority: '0.7', changefreq: 'monthly' },
{ path: '/courses', priority: '0.9', changefreq: 'daily' },
{ path: '/login', priority: '0.5', changefreq: 'yearly' },
{ path: '/register', priority: '0.5', changefreq: 'yearly' },
];

const generateSitemap = () => {
const urls = staticRoutes.map(route => `
<url>
<loc>${baseUrl}${route.path}</loc>
<lastmod>${currentDate}</lastmod>
<changefreq>${route.changefreq}</changefreq>
<priority>${route.priority}</priority>
</url>`).join('');

const sitemap = `<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
${urls}
</urlset>`;

const sitemapPath = path.join(__dirname, '../public/sitemap.xml');
fs.writeFileSync(sitemapPath, sitemap.trim());
console.log('✓ Sitemap generated successfully at public/sitemap.xml');
};

generateSitemap();
1 change: 0 additions & 1 deletion src/api/apiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ apiClient.interceptors.response.use(
const newToken = data.data.token;

localStorage.setItem(TOKEN_STORAGE_KEY, newToken);
apiClient.defaults.headers.common['Authorization'] = `Bearer ${newToken}`;

processQueue(null, newToken);

Expand Down
Loading