Bản quyền thuộc về: NGUYEN CUONG TRUC - MaxStack Software
Mọi người sử dụng trích dẫn nguồn từ đây giùm mình nhé!
Copyright belongs to: NGUYEN CUONG TRUC - MaxStack Software
Please make sure to cite this source when using it!
A production-ready starter using SvelteKit + adapter-vercel with server-side rendering (SSR), 3 locales (English en, Tiếng Việt vi, 中文 zh), localized slugs, canonical & hreflang, sitemap, robots, and a language switcher.
/en/..., /vi/..., /zh/... with localized slugs (e.g. /en/services, /vi/dich-vu, /zh/fu-wu).hreflang + canonical for every page via a reusable component.Accept-Language, root redirect / → /{locale}.# 1) Install deps
npm i
# 2) Set base URL
cp .env.example .env
# Edit PUBLIC_BASE_URL in .env (e.g. https://your-domain.com)
# 3) Run dev
npm run dev
# 4) Build & preview
npm run build && npm run preview
PUBLIC_BASE_URL (e.g. https://your-domain.com).@sveltejs/adapter-vercel.src/lib/routes.ts (add more pages/sections).src/lib/i18n/*.json.fu-wu folder to 服务 and update routes.ts accordingly.x-default points to English by default; change as needed.PUBLIC_BASE_URL.