Welcome to the WindPress website repository available on wind.press.
This repository is derived from the Nuxt website repository with modifications.
Make sure to enable corepack and install the dependencies:
corepack enable
pnpm installCopy the .env.example file to .env:
cp .env.example .envStart the development server:
pnpm devTo list a showcase, add a file in the ./content/showcase directory.
Make sure to start the development server in order to generate the screenshot for the showcase and go to http://localhost:3000/showcase to see the result.
If you want to use your own custom screenshot, use the screenshotUrl property.
To regenerate the image, delete the generated one in public/assets/templates.
To list a Tailwind CSS template, add a file in the ./content/templates directory.
Make sure to start the development server in order to generate the screenshot for the template and go to http://localhost:3000/templates to see the result.
If you want to update the url where we take the automated screenshot, use the screenshotUrl property.
To regenerate the image, delete the generated one in public/assets/templates.
Note that this is not required to run in development and contribute to the WindPress website or documentation.
Build the application for production:
pnpm generateNuxtHub Admin and the nuxthub deploy flow are deprecated. For deployment, use your hosting provider's native CI/CD (for example Vercel, Cloudflare Pages, or Cloudflare Workers with Wrangler) against the generated static output in .output/public.
This repository includes .github/workflows/deploy-cloudflare-pages.yml to build and deploy on every push to main.
If you use Cloudflare Pages Git integration from the dashboard, remove or disable this workflow to avoid duplicate deployments.
Set these GitHub settings before enabling the workflow:
- Secrets
CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_ID
- Variables
CLOUDFLARE_PAGES_PROJECT_NAME(optional, defaults to repository name)NUXT_PUBLIC_SITE_URL(optional but recommended)
CLOUDFLARE_PAGES_PROJECT_NAME must match an existing Pages project in the Cloudflare account referenced by CLOUDFLARE_ACCOUNT_ID.
You can also connect the repository directly in Cloudflare Pages:
- Build command:
pnpm build - Build output directory:
.output/public