Compare commits
3
Commits
d8eb5d7504
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe129bc92e | ||
|
|
9e734f29b8 | ||
|
|
b8f7168d64 |
@@ -0,0 +1,34 @@
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: deploy
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 12
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 26
|
||||
cache: pnpm
|
||||
|
||||
- run: pnpm install --frozen-lockfile
|
||||
|
||||
- run: pnpm build
|
||||
|
||||
- run: pnpm exec wrangler deploy
|
||||
env:
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
@@ -43,3 +43,6 @@ next-env.d.ts
|
||||
|
||||
#Ignore vscode AI rules
|
||||
.github/instructions/codacy.instructions.md
|
||||
|
||||
# wrangler
|
||||
.wrangler
|
||||
|
||||
@@ -1,31 +1,44 @@
|
||||
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
|
||||
# Woiken Website
|
||||
|
||||
## Getting Started
|
||||
The landing page for [woiken.com](https://woiken.com), a coming-soon page for Woiken.
|
||||
|
||||
First, run the development server:
|
||||
It's a single page built with Next.js 16 and exported as static files. Scrolling opens a
|
||||
framed sky photo up to full screen, where the "A new cloud, coming soon." tagline fades in.
|
||||
|
||||
```bash
|
||||
pnpm install
|
||||
pnpm dev
|
||||
## Commands
|
||||
|
||||
| Command | Action |
|
||||
| :------------------------- | :-------------------------------------------------- |
|
||||
| `pnpm install` | Install dependencies |
|
||||
| `pnpm dev` | Start the dev server at `localhost:3000` |
|
||||
| `pnpm build` | Build the static site to `./out/` |
|
||||
| `pnpm lint` | Lint with ESLint |
|
||||
| `pnpm exec wrangler dev` | Serve `./out/` locally the way Cloudflare will |
|
||||
|
||||
Use pnpm 12. `pnpm start` doesn't work, because the site is a static export (`output: "export"`).
|
||||
|
||||
## Project structure
|
||||
|
||||
```
|
||||
.
|
||||
├── app/
|
||||
│ ├── page.tsx # The landing page
|
||||
│ ├── layout.tsx
|
||||
│ └── globals.css # Tailwind + photo darkening
|
||||
├── components/
|
||||
│ └── ScrollExpand/ # Scroll-to-expand hero (from React Bits)
|
||||
├── public/
|
||||
│ └── grass-field.jpg # Hero photo
|
||||
├── wrangler.jsonc # Cloudflare Worker config
|
||||
└── .gitea/workflows/deploy.yml
|
||||
```
|
||||
|
||||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
||||
## Deployment
|
||||
|
||||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
||||
Every push to `main` deploys the site via `.gitea/workflows/deploy.yml`. The workflow builds
|
||||
the site and runs `wrangler deploy`, which uploads `./out/` as static assets to the
|
||||
`woiken-website` Worker on the `woiken.com` custom domain.
|
||||
## Credits
|
||||
|
||||
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
|
||||
|
||||
## Learn More
|
||||
|
||||
To learn more about Next.js, take a look at the following resources:
|
||||
|
||||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
||||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
||||
|
||||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
|
||||
|
||||
## Deploy on Vercel
|
||||
|
||||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
||||
|
||||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
|
||||
Hero photo: [grass field at daytime](https://unsplash.com/photos/grass-field-at-daytime-PEm_sLmJT-w)
|
||||
on Unsplash.
|
||||
|
||||
+3
-3
@@ -28,7 +28,7 @@
|
||||
"eslint-config-next": "16.3.6",
|
||||
"postcss": "^8",
|
||||
"tailwindcss": "^3.4.1",
|
||||
"typescript": "^5"
|
||||
},
|
||||
"packageManager": "pnpm@12.4.2"
|
||||
"typescript": "^5",
|
||||
"wrangler": "^4.142.0"
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+831
-3
File diff suppressed because it is too large
Load Diff
@@ -1,2 +1,4 @@
|
||||
allowBuilds:
|
||||
esbuild: true
|
||||
sharp: false
|
||||
workerd: true
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "woiken-website",
|
||||
"compatibility_date": "2026-09-28",
|
||||
"assets": {
|
||||
"directory": "./out",
|
||||
"not_found_handling": "404-page"
|
||||
},
|
||||
"routes": [{ "pattern": "woiken.com", "custom_domain": true }]
|
||||
}
|
||||
Reference in New Issue
Block a user