URGENT: Serverless Function Executing Stale Code (Vike/SSR)

We are experiencing a critical deployment synchronization failure. Despite multiple successful, cache-busting deployments, the Serverless Function responsible for SSR on the /job route is executing an immutable, stale build artifact.

We have exhausted all front-end and configuration-based cache-busting solutions.

Category

Current (Failing) Behavior (Log Evidence)
Expected (Working) Behavior
Code Execution
The function is executing an artifact from several commits ago. The internal logic is not present, leading to the noisy log error.
The latest committed code in +data.js should execute, applying the data structure fix and silencing the noisy log.
Log Output
The log shows the noisy, verbose error message from an old commit: [+data.js] API returned unexpected data (not an array): { jobs: […] }
The log must show the unique new debug signature that was added to the latest code commit.
Stale Log Example
Log seen at Oct 08 19:54:31.69: [+data.js] API returned unexpected data (not an array): { jobs: […] }
Log expected (but is NOT appearing): — :white_check_mark: NEW ARTIFACT RUNNING: data() EXECUTION FOR /job (LIST PAGE) —

Code, Configuration, and Steps that Reproduce this Issue

Current, Fixed Code in +data.js (NOT Executing)

This is the code that successfully builds but is not being executed in the Vercel runtime. It contains the data structure fix and a unique log signature for verification:

// /frontend/pages/job/+data.js

// 🚀 Data flattening utility function 🚀
const extractValue = (obj) => obj?.value || null;

export async function data({ isClient }) {
  // FIX: Moved environment variable access inside the function to avoid build-time errors.
  const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || 'http://localhost:3000';
  
  // --- CRITICAL DEBUG SIGNATURE (This is NOT appearing in the logs) ---
  console.log('='.repeat(80));
  console.log('--- ✅ NEW ARTIFACT RUNNING: data() EXECUTION FOR /job (LIST PAGE) ---'); 
  console.log('--- FILE: +data.js (Fixed Content) ---'); 
  console.log('='.repeat(80));
  // -------------------------------------------------------------------

  const fullUrl = `${API_BASE_URL}/api/jobs`;

  // ... (rest of the logic for fetch, JSON parse, and array unwrapping) ...

  let rawData; // ... (fetch and parse logic) ...
  
  // ✅ FIX: Unwrap the 'jobs' array (Addresses the original noisy log)
  if (!Array.isArray(rawData)) {
      if (rawData && Array.isArray(rawData.jobs)) {
          console.log(`✅ DATA STRUCTURE FIX APPLIED: Extracting 'jobs' array.`);
          rawData = rawData.jobs;
      } else {
          console.error("[+data.js] FINAL FAILURE: API returned unexpected structure...");
          return { jobs: [], error: { message: 'Unexpected data structure from API.' } };
      }
  }
  
  // ... (rest of the function) ...
}
Configuration (+config.js)

We confirmed Vike’s strict convention forces the runtime hook to be in a file named +data.js, meaning a config-based bypass is impossible. The configuration is minimal and correct:
// /frontend/pages/job/+config.js
export default {
meta: {
isr: {
expiration: 60,
env: { server: true }
},
documentProps: {
title: ‘Latest Jobs – JobSeekZM’,
// … (other props) …
}
}
};

Actions Taken

We confirm all known cache-busting steps have failed:
Forced Deployment: Executed vercel --prod --force --yes multiple times.
File Renaming: Attempted to rename the data file (+data-fix.js, job-list-fetcher.js), which failed the Vike build. The final, correct code was reverted back to the required +data.js name.
Conclusion: The build is succeeding, but the execution environment is not updating the artifact, confirming an infrastructure synchronization failure.
Project Information
Detail
Value
Project Name/ID
job-seek-m936i7ojr-pits-mapates-projects.vercel.app
Production Domain
www.jobseekzm.com
Framework
Vike (Vite SSR)
Environment Type
Node.js Serverless Function Runtime
Required Action
Requesting manual investigation and clearance of the deep Serverless Function cache for the artifact serving the /job route.