|
#!/bin/bash |
|
|
|
|
|
GREEN='\033[0;32m' |
|
YELLOW='\033[1;33m' |
|
RED='\033[0;31m' |
|
NC='\033[0m' |
|
|
|
echo -e "${YELLOW}Starting local preview server...${NC}" |
|
|
|
|
|
echo -e "${YELLOW}Making sure dependencies are installed...${NC}" |
|
npm install |
|
|
|
|
|
echo -e "${YELLOW}Ensuring Facebook-compatible banner image is up-to-date...${NC}" |
|
if [ -f "convert-banner.sh" ]; then |
|
chmod +x convert-banner.sh |
|
./convert-banner.sh |
|
fi |
|
|
|
|
|
echo -e "${YELLOW}Starting Wrangler development server...${NC}" |
|
echo -e "${GREEN}Your site will be available at http://localhost:8788${NC}" |
|
echo -e "${YELLOW}Press Ctrl+C to stop the server${NC}" |
|
|
|
|
|
npx wrangler dev --local |
|
|
|
|