mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 21:07:46 +00:00
* Revert "Revert "[static-build] Support subset of Build Output API v2" (#7803)"
This reverts commit dfb6ef949b.
* more specific v2 detection
* use nuxt@3.0.0-rc.3 to make sure the incident is resolved
* set test timeout to see if this works in CI
* update CI node version to 14
* add node_modules because it was taking too long to install in CI
* remove timeout
* remove node modules
* remove the nuxt@3 dependency
* finish update to node 14
* blank yarn.lock
* revert node version update
* fix revert
* remove newline
33 lines
713 B
JavaScript
Executable File
33 lines
713 B
JavaScript
Executable File
const fs = require('fs');
|
|
|
|
fs.mkdirSync('.vercel_build_output/static', { recursive: true });
|
|
fs.mkdirSync('.vercel_build_output/config', { recursive: true });
|
|
|
|
fs.writeFileSync(
|
|
'.vercel_build_output/config/functions.json',
|
|
JSON.stringify(
|
|
{
|
|
about: {
|
|
memory: 3008,
|
|
},
|
|
},
|
|
null,
|
|
2
|
|
)
|
|
);
|
|
|
|
fs.writeFileSync(
|
|
'.vercel_build_output/static/index.html',
|
|
'<h1>Build Output API v1</h1>'
|
|
);
|
|
|
|
fs.mkdirSync('.vercel_build_output/functions/node/about', { recursive: true });
|
|
fs.writeFileSync(
|
|
'.vercel_build_output/functions/node/about/index.js',
|
|
`export default function handler(request, response) {
|
|
response.status(200).json({
|
|
body: 'some user info'
|
|
});
|
|
}`
|
|
);
|