image: node:20 # Cache für schnellere Builds cache: paths: - node_modules/ - .next/cache/ before_script: - npm ci pages: script: - npm run build - mkdir -p public - cp -r out/* public artifacts: paths: - public rules: - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH