Skip to content

Commit

Permalink
add static export config
Browse files Browse the repository at this point in the history
Signed-off-by: Max Wolfs <[email protected]>
  • Loading branch information
maxwolfs committed Oct 11, 2024
1 parent 4d2928a commit 414e064
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
10 changes: 10 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,

// For static export and i18n configuration
i18n: {
locales: ['de', 'en'],
defaultLocale: 'en',
},

// These settings are important for GitHub Pages
basePath: '/sovereigncloudstack.org', // Replace with your repository name
assetPrefix: '/sovereigncloudstack.org/', // Replace with your repository name
trailingSlash: true, // Adds trailing slash to every route to work with GitHub Pages

// Optional: Disable server-side rendering completely to ensure static export
output: 'export', // Enable static export
};

export default nextConfig;
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "sovereigncloudstack.org",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"scripts": {
"dev": "next dev",
"build": "next build",
"export": "next export",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@emotion/react": "^11.11.4",
"@types/d3": "^7.4.3",
Expand Down

0 comments on commit 414e064

Please sign in to comment.