mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-06 12:57:46 +00:00
Removes the two-staged `tsc` build into a single `esbuild` bundle. The `ssr-handler.ts` template file is moved to the root of the package and converted to JavaScript.
9 lines
258 B
JavaScript
9 lines
258 B
JavaScript
const { generateVercelBuildOutputAPI3Output } = require('./dist/index.js');
|
|
|
|
exports.onPostBuild = async ({ store }) => {
|
|
await generateVercelBuildOutputAPI3Output({
|
|
// validated by `pluginOptionSchema`
|
|
gatsbyStoreState: store.getState(),
|
|
});
|
|
};
|