Files
vercel/packages/gatsby-plugin-vercel-builder/gatsby-node.js
Nathan Rajlich 4b376a564a [gatsby-plugin-vercel-builder] Use "esbuild" to build package (#10508)
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.
2023-09-20 13:26:31 +00:00

9 lines
258 B
JavaScript

const { generateVercelBuildOutputAPI3Output } = require('./dist/index.js');
exports.onPostBuild = async ({ store }) => {
await generateVercelBuildOutputAPI3Output({
// validated by `pluginOptionSchema`
gatsbyStoreState: store.getState(),
});
};