• Stars
    star
    217
  • Rank 182,446 (Top 4 %)
  • Language
    JavaScript
  • License
    Other
  • Created over 3 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Hosting multiple domains on the same Next.js site (while maintaining multiple languages and SSG)

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 locale is used to determine the site.
  • Language is instead handled via a pseudoLocale prop (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.

More Repositories

1

nextjs-pwa-firebase-boilerplate

Next.js serverless PWA with Firebase boilerplate
JavaScript
210
star
2

nextjs-express-mongoose-crudify-boilerplate

Next.js (React) + Redux + Express REST API + MongoDB + Mongoose-Crudify boilerplate
JavaScript
175
star
3

nextjs-pwa-graphql-sql-boilerplate

Next.js serverless PWA with GraphQL (Postgraphile, Apollo) + Postgres SQL boilerplate
TypeScript
137
star
4

reactnative-nextjs-template

Build native apps (iOS/Android/Windows/macOS) and an SEO-optimized web app from the same React codebase
TypeScript
43
star
5

nextjs-sql-rest-api-boilerplate

Next.js (React) + Redux + Express REST API + Postgres SQL boilerplate.
JavaScript
23
star
6

programmatic-animations

Make animations with canvas and JavaScript, and export as video
JavaScript
18
star
7

nextjs-generic-landing-page

A generic landing page template, built in Next.js (React) with static HTML export
JavaScript
12
star
8

one-click-survey

API service for creating simple one-click email surveys.
JavaScript
10
star
9

login-as-a-service

Simple plug-and-play login/signup/leads service (using email), compatible with Vercel serverless functions
JavaScript
9
star
10

toms-guidebooks

@tomsoderlund’s guidebooks to a wide collection of tools and services.
JavaScript
6
star
11

string-match-like-search-engines

Google/Bing search style string matching
JavaScript
4
star
12

react-zeroconfig-components

React UI components that require (almost) zero configuration
JavaScript
3
star
13

react-zeroconfig-payments

React Stripe payment components that require zero configuration
JavaScript
3
star
14

twatbot

The clever Twitter bot.
JavaScript
2
star
15

centered-css

A centered, auto-scaling CSS box
HTML
2
star
16

skyscraper-js

Skyscraper.JS - interactive web scraping bookmarklet.
JavaScript
2
star
17

MobileZero

Basic boilerplate for "Mobile First" projects: looks awesome on mobile, and alright on desktop.
JavaScript
2
star
18

sql-wizard

Library that helps generate SQL queries and Express CRUD routes.
JavaScript
2
star
19

CordovaRTC

WebRTC live streaming for Cordova (mobile apps) - to be used together with ProjectRTC
JavaScript
2
star
20

design-profile-generator

Quickly generate a graphic design profile (as CSS)
JavaScript
2
star
21

duckduckgo-images-api-vercel

Simple API based on duckduckgo-images-api running on Vercel
Python
1
star
22

listwizard

Manipulate text lists with subtraction, intersection, aggregation, etc.
Svelte
1
star
23

pdf-analyzer

Convert PDF’s to structured data with ML
Python
1
star
24

MathPlay

Simple multiplayer math game using Meteor.
JavaScript
1
star
25

simple-browser-session

Library to get/set session values from localStorage/cookie and/or URL query string
JavaScript
1
star
26

react-share-follow

React component for Share and Follow on social networks
JavaScript
1
star
27

mixpanel-analytics

Tools for exporting and analyzing Mixpanel data.
JavaScript
1
star
28

simple-scraper-chrome-extension

Simple Scraper - Chrome extension
JavaScript
1
star