This project is bootstrapped with Next.js and demonstrates a static export for an internationalized website. Each page is statically rendered into the out
folder, ensuring fast and reliable content delivery.
out
folder./src/translations
folder.LanguageSelector
component (in /src/components/LanguageSelector.tsx
) reads the current language from the URL.Before using Docker commands, create a production build to generate the out
folder:
npm run build
To build the Docker image and run a container, use the following commands:
Build the Docker image:
docker build -t next-app-demo .
Run the container:
docker run -d -p 4400:4400 --name next-app-demo-container next-app-demo
Command to run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.