المشاريع
عرض على GitHub
tomsoderlund/nextjs-multi-domain-locale
حول
Hosting multiple domains on the same Next.js site (while maintaining multiple languages and SSG)
تطوير الويب والتطبيقاتالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلnextjs-multi-domain-locale
Multiple domains and languages on the same Next.js site
This is an example of hosting multiple domains on the same Next.js site (while maintaining multiple languages and static site generation (SSG, getStaticProps)), using Next.js’ i18n system.
Demo
https://multi-domain-locale1.vercel.app/
Concept
- Domain mapped to Next.js’ i18n
localeis used to determine the site. - Language is instead handled via a
pseudoLocaleprop (pages inside a/[pseudoLocale]folder). - A redirect from
/to/en. - TODO: Automatic language detection using the Accept-Language header.
See next.config.js for setup.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…