mirror of
https://github.com/System-End/My-website.git
synced 2026-04-19 19:45:10 +00:00
17 lines
557 B
PowerShell
17 lines
557 B
PowerShell
# Step 1: Install Dependencies
|
|
Write-Output "Installing dependencies..."
|
|
npm install
|
|
|
|
# Step 2: Build Frontend
|
|
Write-Output "Building the React project..."
|
|
npm run build
|
|
|
|
# Step 3: Deploy Frontend to Cloudflare Pages
|
|
Write-Output "Deploying frontend to Cloudflare Pages..."
|
|
wrangler pages deploy ./build --project-name personal-site-test
|
|
|
|
# Step 4: Deploy Backend to Cloudflare Workers
|
|
Write-Output "Deploying backend worker..."
|
|
wrangler deploy spotify-worker.js --name spotify-worker
|
|
|
|
Write-Output "✅ Deployment complete! Frontend and backend are live."
|