From 45967e314c271c0d22da232b97bc1f8737b015af Mon Sep 17 00:00:00 2001 From: SinusFox Date: Mon, 14 Oct 2024 20:21:15 +0000 Subject: [PATCH] Pages --- .gitlab-ci.yml | 4 ++-- next.config.mjs | 21 +++++++++++++++++---- 2 files changed, 19 insertions(+), 6 deletions(-) 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