Pages
This commit is contained in:
+2
-2
@@ -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
|
||||||
+16
-3
@@ -1,4 +1,17 @@
|
|||||||
/** @type {import('next').NextConfig} */
|
/**
|
||||||
const nextConfig = {};
|
* @type {import('next').NextConfig}
|
||||||
|
*/
|
||||||
|
const nextConfig = {
|
||||||
|
output: 'export',
|
||||||
|
|
||||||
export default nextConfig;
|
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user