Pages
This commit is contained in:
+2
-2
@@ -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
|
||||
+17
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user