URL: https://lovable.dev/projects/7a09674e-4dd6-4c5e-a577-cd08f955ec2f
There are several ways of editing your application.
Use Lovable
Simply visit the Lovable Project and start prompting.
Changes made via Lovable will be committed automatically to this repo.
Use your preferred IDE
If you want to work locally using your own IDE, you can clone this repo and push changes. Pushed changes will also be reflected in Lovable.
The only requirement is having Node.js & npm installed - install with nvm
Follow these steps:
# Step 1: Clone the repository using the project's Git URL.
git clone <YOUR_GIT_URL>
# Step 2: Navigate to the project directory.
cd <YOUR_PROJECT_NAME>
# Step 3: Install the necessary dependencies.
npm i
# Step 4: Start the development server with auto-reloading and an instant preview.
npm run devEdit a file directly in GitHub
- Navigate to the desired file(s).
- Click the "Edit" button (pencil icon) at the top right of the file view.
- Make your changes and commit the changes.
Use GitHub Codespaces
- Navigate to the main page of your repository.
- Click on the "Code" button (green button) near the top right.
- Select the "Codespaces" tab.
- Click on "New codespace" to launch a new Codespace environment.
- Edit files directly within the Codespace and commit and push your changes once you're done.
This project is built with:
- Vite
- TypeScript
- React
- shadcn-ui
- Tailwind CSS
This project is configured for deployment to Cloudflare Pages.
A GitHub Actions workflow (.github/workflows/cloudflare-pages.yml) is set up to automatically build and deploy the application whenever changes are pushed to the main branch.
The workflow performs the following steps:
- Checks out the code
- Sets up Node.js and pnpm
- Installs dependencies
- Builds the application (
pnpm build) - Deploys the
distdirectory to Cloudflare Pages usingwrangler
To enable automatic deployments, you need to configure secrets and variables in your GitHub repository settings:
- Go to
Settings>Secrets and variables>Actions. - Add a repository secret named
CLOUDFLARE_API_TOKENcontaining your Cloudflare API token with Pages permissions. - Add a repository variable named
CLOUDFLARE_ACCOUNT_IDcontaining your Cloudflare account ID.
Also, ensure the --project-name in the workflow file matches your Cloudflare Pages project name (actorkit-dev).
- Go to the Cloudflare dashboard
- Navigate to
My Profile>API Tokens - Click "Create Token"
- Use the "Edit Cloudflare Workers" template or create a custom token with
Account>Cloudflare Pages>Editpermission. - Set the Account Resources to include your account.
- Create the token and copy it.
To deploy manually using wrangler:
- Ensure
wrangleris installed (pnpm install -D wranglerornpm install -D wrangler). - Log in to Cloudflare:
npx wrangler login - Build the application:
pnpm build - Deploy using the script:
pnpm cf:deploy(Make sure the--project-nameinpackage.jsonis set toactorkit-dev).
If you're setting up a new Cloudflare Pages project:
- Log in to your Cloudflare dashboard.
- Go to
Workers & Pages>Create application>Pages>Connect to GitorUpload assets. - If connecting to Git:
- Select your repository.
- Choose
Viteas the framework preset. - Ensure the
Build commandispnpm build(ornpm run build). - Ensure the
Build output directoryisdist. - Set Environment Variables (Production) for
NODE_VERSIONto18(or matching your workflow).
- If uploading assets:
- Build the project locally (
pnpm build). - Drag and drop the
distfolder or usewrangler(pnpm cf:deploy).
- Build the project locally (
Yes it is!
To connect a domain, navigate to Project > Settings > Domains and click Connect Domain.
Read more here: Setting up a custom domain