Skip to content
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

Date.now() query with SSG #3194

Open
OversensitiveCat opened this issue Feb 25, 2025 · 2 comments
Open

Date.now() query with SSG #3194

OversensitiveCat opened this issue Feb 25, 2025 · 2 comments

Comments

@OversensitiveCat
Copy link

Hello,

Is there a reason why this query using Date.now() works in development but not in production (SSG deployed with Netlify)?

const { data: events } = await useAsyncData('events', () => {
  return queryCollection('events')
    .where('timestamp', '>', Date.now())
    .all()
})

Thanks!

@farnabaz
Copy link
Member

Do you mind providing a reproduction sample?

@OversensitiveCat
Copy link
Author

No, I will try to make it next week!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants