Skip to content

Commit

Permalink
Update static-deploy.md
Browse files Browse the repository at this point in the history
Summary

The previous .gitlab-ci.yml used node:16.5.0, which caused deployment to fail during the build step due to compatibility issues with vite build.

This PR updates the Node.js version to node:18.16.0, resolving the issue and ensuring the pipeline runs successfully.
  • Loading branch information
vadim4web authored Jan 27, 2025
1 parent a4245b0 commit 7439f7a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/guide/static-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,20 +128,19 @@ Now the `preview` command will launch the server at `http://localhost:8080`.
2. Create a file called `.gitlab-ci.yml` in the root of your project with the content below. This will build and deploy your site whenever you make changes to your content:

```yaml [.gitlab-ci.yml]
image: node:16.5.0
image: node:18.16.0
pages:
stage: deploy
cache:
key:
files:
- package-lock.json
prefix: npm
key: npm-cache
paths:
- node_modules/
script:
- npm install
- npm run build
- cp -a dist/. public/
- mkdir -p public
- cp -r dist/* public
artifacts:
paths:
- public
Expand Down

0 comments on commit 7439f7a

Please sign in to comment.