- Astro 57%
- CSS 25.1%
- TypeScript 15.3%
- JavaScript 2.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .forgejo/workflows | ||
| public | ||
| src | ||
| .gitignore | ||
| astro.config.mjs | ||
| bun.lock | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Bez KonTechstu: landing page and blog
Astro (static site) + Sveltia CMS (web editor that commits to this Forgejo repo).
Development
bun install
bun run dev # http://localhost:4321
bun run build # output in dist/
CMS (/admin/)
-
In Forgejo: Settings → Applications → create an OAuth2 app with Confidential unticked (the CMS uses PKCE, no secret) and these redirect URIs, one per line:
https://bezkontechstu.pl/admin/ http://localhost:4321/admin/They must match the address bar exactly (scheme, port, trailing slash), so open
/admin/, not/admin/index.html. Add one per extra host (staging, other dev port). Put the app's client ID (not secret) inapp_idinpublic/admin/config.yml. (Or skip OAuth and sign in with a token.) -
If the site and Forgejo are on different origins, allow the site origin under
[cors]in Forgejo'sapp.ini.
Every push to main (including CMS saves) builds and uploads dist/ to Majinode
via .forgejo/workflows/deploy.yml. Needs the MAJINODE_API_TOKEN Actions secret.