unfolding-io/nebulix
소개
Nebulix는 Astro + Static CMS + Snipcart 기반의 빠르고 친환경적인 테마입니다.
웹 및 앱 개발What you can do
- Blog, portfolio, and restaurant menu
- Typed Content Layer collections (src/content.config.ts)
- Optimized images via astro:assets Picture with layout-aware sizes / widths
- PhotoSwipe lightbox for image enlargement (no /images routes)
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalNebulix | Astro 7 + Sveltia CMS
Fast theme for blogs, portfolios, and restaurant menus — built on Astro 7, Tailwind CSS v4, content collections, and Sveltia CMS.
Features
- Blog, portfolio, and restaurant menu
- Typed Content Layer collections (
src/content.config.ts) - Optimized images via
astro:assetsPicturewith layout-awaresizes/widths - PhotoSwipe lightbox for image enlargement (no
/imagesroutes) - CMS-editable light/dark surfaces
- Sveltia CMS admin at
/admin - Pagefind full-text search
- Contact + newsletter via Astro Actions (Mailgun, Postmark, Slack, Mailchimp)
See CHANGELOG.md for release notes.
Requirements
- Node.js 22.12+ (22.19+ recommended)
- npm 10+
Getting started
cp env.txt .env
npm install
npm run dev
Demo env shortcut:
npm run dev:demo
Environment
See env.txt. Key vars:
| Variable | Purpose |
|---|---|
BLOG_SLUG |
Blog URL segment (default blog) |
PORTFOLIO_SLUG |
Portfolio URL segment (default work) |
MENU_SLUG |
Menu URL segment (default menu) |
WEBSITE_LANGUAGE |
Locale for UI strings |
CURRENCY / UNITS |
Display preferences |
| Newsletter / mail / Slack | Used by Astro Actions (see below) |
CMS (Sveltia)
Open /admin in the browser. Collection definitions live in src/cms/. Media is stored under src/assets.
On localhost, Sveltia offers “Work with local repository” (File System Access). Choose this repo root (the folder that contains .git). For production, sign in with GitHub; backend settings are in src/pages/admin.astro.
Forms (Astro Actions)
Contact and newsletter no longer use Netlify edge functions. They run as Astro Actions under src/actions/ with shared providers in src/lib/forms/.
| Action | Used by | Providers |
|---|---|---|
actions.contact |
Contact dialog | mailgun, postmark, slack |
actions.subscribe |
Footer newsletter | mailchimp |
Pages stay statically prerendered; the adapter only serves the action endpoints. Set the matching secrets in .env (local) and in your host’s environment UI (production).
Provider setup details: Contact Form and Activate Newsletter posts in the demo content.
Scripts
| Script | Description |
|---|---|
npm run dev |
Dev server |
npm run check |
Type-check with astro check |
npm run build |
Production build + Pagefind index |
npm run preview |
Preview dist/ |
Deploy
Nebulix is mostly static HTML. An Astro adapter is required so Actions can run on the server. The repo ships with @astrojs/netlify.
Official deploy guides: Cloudflare · Netlify · Vercel
Netlify (default)
Already configured (adapter: netlify() in astro.config.mjs, netlify.toml).
- Connect the Git repo in the Netlify UI (or use the Netlify CLI).
- Build command:
npm run build· publish directory:dist(set bynetlify.toml). - Add the same secrets from
env.txtunder Site configuration → Environment variables. - Deploy.
Cloudflare Workers
Swap the adapter:
npx astro add cloudflareThat replaces
@astrojs/netlifywith@astrojs/cloudflareand updatesastro.config.mjs.Set secrets / vars in the Cloudflare dashboard (or
wrangler secret put …) for Mailchimp / Mailgun / Postmark / Slack as needed.Local preview / deploy:
npx astro build && npx wrangler dev npx astro build && npx wrangler deploy
See the Cloudflare adapter docs and Cloudflare deploy guide.
Vercel
Swap the adapter:
npx astro add vercelImport the project in Vercel (or
vercelCLI). Framework preset: Astro.Add environment variables from
env.txtin the Vercel project settings.Deploy. Build uses
npm run build; the Vercel adapter emits the serverless Action handlers.
See the Vercel adapter docs and Vercel deploy guide.
Switching hosts later
Only one adapter should be active. After npx astro add <platform>, remove the unused adapter package if it remains in package.json, and keep host-specific config (netlify.toml, wrangler.jsonc, vercel.json) aligned with the platform you actually use.
License
CC BY-ND 4.0 — see LICENSE.md. Attribution in the footer must remain visible unless you purchase a license.
관련 프로젝트 살펴보기
불러오는 중…