Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

How to Deploy a Vite React App to GitHub Pages

How to Deploy a Vite React App to GitHub Pages – Step-by-Step Guide Deploy Vite React App to GitHub Pages MAR 25, 2025 • react vite github git • 2 mins read Create a New Project Let’s start by…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

How to Deploy a Vite React App to GitHub Pages – Step-by-Step Guide

Deploy Vite React App to GitHub Pages

MAR 25, 2025



•






react






vite






github






git



•



2 mins read



Create a New Project

Let’s start by scaffolding a new React project using Vite:



Copy

npm create vite@latest

Once the project is scaffolded, navigate to the project directory and install dependencies:



Copy

cd vite-react-deploy

npm install

Create a GitHub Repository

Initialize Git, commit all the files, and push them to your new repository:



Copy

git init

git add -A

git commit -m "first commit"

git branch -M main

git remote add origin https://github.com/[username]/[repo_name].git # Replace with your username and repo URL

git push -u origin main

Your project is now successfully pushed to GitHub.



Set Base Path in vite.config.ts

If you skip this step, you'll get a 404 error for each asset in your project.



Edit vite.config.ts as follows:



Copy

import { defineConfig } from "vite";

import react from "@vitejs/plugin-react";



export default defineConfig({

plugins: [react()],

base: "/vite-react-deploy/", // Replace with your repo name

});

Add a GitHub Workflow

Create a deploy.yml file inside the .github/workflows directory and add the following content:



Copy

name: Deploy



on:

push:

branches:

- main



jobs:

build:

name: Build

runs-on: ubuntu-latest




steps:
- name: Checkout repo
uses: actions/checkout@v4 # Updated to latest version

- name: Setup Node
uses: actions/setup-node@v4 # Updated to latest version

- name: Install dependencies
uses: bahmutov/npm-install@v1

- name: Build project
run: npm run build

- name: Upload production-ready build files
uses: actions/upload-artifact@v4 # Updated to v4
with:
name: production-files
path: ./dist




deploy:

name: Deploy

needs: build

runs-on: ubuntu-latest

if: github.ref == 'refs/heads/main'




steps:
- name: Download artifact
uses: actions/download-artifact@v4 # Updated to v4
with:
name: production-files
path: ./dist

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist




Push the workflow changes:



Copy

git add -A

git commit -m "deploy config"

git push

Configure GitHub Actions Permissions

Go to Settings → Actions → General.



Scroll down to Workflow Permissions.



Choose Read and Write and save.



Re-run failed actions if needed.



Configure GitHub Pages

Navigate to Settings → Pages.



Under Source, choose Deploy from branch.



Select the gh-pages branch.



Click Save.



Once the workflow finishes successfully, you’ll see a new deployment on GitHub Pages. Click the link to access your deployed Vite React application!



🚀 Congratulations! Your Vite React App is live!

1. Sofort-Triage & Abwehrmaßnahmen

SOC Incident Playbook: Remote Code Execution (RCE) Defense
Syntax validiert (0 Fehler)
title: Detect Exploitation - How to Deploy a Vite React App to GitHub Pages
id: 46a01b5e-1775-40d4-8c0e-34059ac76c2f
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-25
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-25"
        description = "YARA Signature for "
    strings:
        $str = "How to Deploy a Vite React App" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("How to Deploy a Vite React App to GitHub")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*How to Deploy a Vite React App to GitHub*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "How to Deploy a Vite React App to GitHub"
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc

2. Cyber Threat Intelligence & Forensik

🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich How to Deploy a Vite React App to GitHub.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten How to Deploy a Vite React App to GitHub Pages

Thematisch verwandte Begriffe: Deploy, Vite, React, GitHub · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-97898 | Insecure Direct Object Reference / missing object-level authorization in…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag