mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-10 04:22:12 +00:00
Adds detection logic for a framework / build script outputting Build Output v3 format to the filesystem. In this case, `static-build` will simply stop processing after the Build Command since deserialization happens in the build-container side of things (this is different compared to the v1 output which gets handled in this Builder. The reason for that is because the v3 output matches what `vc build` outputs vs. v1 which is a different format).
8 lines
229 B
JavaScript
Executable File
8 lines
229 B
JavaScript
Executable File
const fs = require('fs');
|
|
fs.mkdirSync('.vercel/output/static', { recursive: true });
|
|
fs.writeFileSync('.vercel/output/config.json', '{}');
|
|
fs.writeFileSync(
|
|
'.vercel/output/static/index.html',
|
|
'<h1>Build Output API</h1>'
|
|
);
|