This commit is contained in:
2024-10-14 20:21:15 +00:00
parent 11e4ba3569
commit 45967e314c
2 changed files with 19 additions and 6 deletions
+2 -2
View File
@@ -12,9 +12,9 @@ before_script:
pages: pages:
script: script:
- npm run build - npm run build
- npm run export # Export für statische Seiten - cp -r out/* public
artifacts: artifacts:
paths: paths:
- out # Das 'out'-Verzeichnis, wenn 'next export' verwendet wird - public
rules: rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
+17 -4
View File
@@ -1,4 +1,17 @@
/** @type {import('next').NextConfig} */ /**
const nextConfig = {}; * @type {import('next').NextConfig}
*/
export default 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