-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·31 lines (22 loc) · 799 Bytes
/
build.sh
File metadata and controls
executable file
·31 lines (22 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# Cloudflare Pages Build Script for PPT Visionary AI
set -e
echo "🏗️ Starting Cloudflare Pages build..."
# Enable corepack for yarn 4.x support
corepack enable
# Install dependencies with yarn
echo "📦 Installing dependencies with yarn..."
yarn install --immutable
# Build the application
echo "🔨 Building Next.js application..."
yarn build
# Generate Vercel output for Cloudflare Workers
echo "📦 Generating Vercel build output..."
npx vercel build
# Transform for Cloudflare Workers (removed deprecated --experimental-minify flag)
echo "⚡ Transforming for Cloudflare Workers..."
npx @cloudflare/next-on-pages --skip-build
echo "✅ Build completed successfully!"
# List output for verification
echo "📁 Output directory contents:"
ls -la .vercel/output/static/