diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1774977..f9d7328 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,9 +12,9 @@ before_script: pages: script: - npm run build - - npm run export # Export für statische Seiten + - cp -r out/* public artifacts: paths: - - out # Das 'out'-Verzeichnis, wenn 'next export' verwendet wird + - public rules: - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH \ No newline at end of file diff --git a/next.config.mjs b/next.config.mjs index 4678774..770f839 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,17 @@ -/** @type {import('next').NextConfig} */ -const nextConfig = {}; - -export default nextConfig; +/** + * @type {import('next').NextConfig} + */ +const nextConfig = { + output: 'export', + + // Optional: Change links `/me` -> `/me/` and emit `/me.html` -> `/me/index.html` + // trailingSlash: true, + + // Optional: Prevent automatic `/me` -> `/me/`, instead preserve `href` + // skipTrailingSlashRedirect: true, + + // Optional: Change the output directory `out` -> `dist` + // distDir: 'dist', +} + +module.exports = nextConfig