Skip to content

Non-Deterministic Builds Due to Timestamp-Based deploymentHash in v10.1.0+ #3897

@ivanvakulov

Description

@ivanvakulov

Environment

  • Nuxt: 4.x
  • @nuxtjs/i18n: 10.1.0+
  • Last deterministic version: 10.0.6
  • Mode: SSR

Reproduction

  1. Install @nuxtjs/i18n ≥ 10.1.0
  2. Run nuxi build twice without changing any files
  3. Compare the output — the deploymentHash in the i18n route changes each time

Describe the bug

Starting from version 10.1.0, deploymentHash is generated using Date.now(), which changes on every build even when nothing in the project changed.
This makes the build output non-deterministic and causes related chunks to use a different hash each time.

Commit introducing the behavior:
0fa042cd

Additional context

A content-based hash or configurable hashing strategy would restore deterministic builds.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions