-
-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The updatedAt field of all the contents are changed on deployment. #913
Comments
I noticed the same for the |
I also was confused about this, but for me, it makes sense as during the build steps the files are copied/moved/recreated at the servers of netlify/vercel. To fix this, I added the attribute |
I seem to have the same issue using GitHub Pages (with Github Actions). With With On GitHub Pages: Here is my GitHub Action workflow it it helps, maybe I did something wrong: name: ci
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
steps:
- name: Checkout 🛎
uses: actions/checkout@master
- name: Setup node env 🏗
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
check-latest: true
- name: Cache node_modules 📦
uses: actions/[email protected]
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies 👨🏻💻
run: npm ci --prefer-offline --no-audit
- name: Build Static
run: npm run generate
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist |
Install the module with
Note that it is important to add it before @nuxt/content, so @nuxt/content knows about the hooks that our helper module installs. |
When deploying a static site to netlify or vercel, the
updatedAt
field of all the contents are changed to the deployment time.You can see in this example nuxt blog repository that the repo was last update on Jan 7 and the
updatedAt
field of the contents on the website are Jan 7 as well. This behavior also happens on latest version (v1.14.0).Steps to reproduce
The text was updated successfully, but these errors were encountered: