尚未收集儲存庫資訊。
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Landing page for /workspace. Next.js 15 (App Router), TypeScript, plain CSS, no UI library.
English, Spanish and Portuguese, served at /en, /es and /pt. The middleware
redirects / using the NEXT_LOCALE cookie first, then the browser's
Accept-Language, falling back to English. The footer switcher stores the manual
choice in that cookie. All copy lives in lib/dictionaries.ts.
npm install
cp .env.example .env.local # fill in WAITLIST_WEBHOOK_URL
npm run dev # http://localhost:3000
WAITLIST_WEBHOOK_URL (and WAITLIST_WEBHOOK_SECRET if you set one in the script below) for Production and Preview.slashworkspace.com and www.slashworkspace.com, and set the DNS records Vercel shows at your registrar.Every push to the default branch redeploys production.
The form posts to /api/waitlist, which validates the input and forwards one JSON record to WAITLIST_WEBHOOK_URL. The simplest target is a Google Sheet behind an Apps Script web app, on the slashworkspace.com Google Workspace account:
submitted_at, email, team_size, tools.const SECRET = ""; // same value as WAITLIST_WEBHOOK_SECRET, or leave empty
function doPost(e) {
const d = JSON.parse(e.postData.contents);
if (SECRET && d.secret !== SECRET) {
return ContentService.createTextOutput("forbidden").setMimeType(ContentService.MimeType.TEXT);
}
const sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()[0];
sheet.appendRow([d.submitted_at, d.email, d.team_size, d.tools]);
return ContentService.createTextOutput(JSON.stringify({ ok: true })).setMimeType(ContentService.MimeType.JSON);
}
WAITLIST_WEBHOOK_URL.The route handler also drops submissions where the hidden website field is filled (a bot trap) and returns 503 with a mailto fallback when the variable is not set, so the page never fails silently.
[LEGAL ENTITY NAME] in the footer (app/page.tsx).app/
layout.tsx Google Fonts link (Inter, JetBrains Mono, Nunito), metadata
globals.css all styles
page.tsx the page
components/
WaitlistForm.tsx client form
api/waitlist/route.ts POST handler