mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 12:57:46 +00:00
[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.
This commit is contained in:
8
packages/gatsby-plugin-vercel-builder/gatsby-node.js
Normal file
8
packages/gatsby-plugin-vercel-builder/gatsby-node.js
Normal file
@@ -0,0 +1,8 @@
|
||||
const { generateVercelBuildOutputAPI3Output } = require('./dist/index.js');
|
||||
|
||||
exports.onPostBuild = async ({ store }) => {
|
||||
await generateVercelBuildOutputAPI3Output({
|
||||
// validated by `pluginOptionSchema`
|
||||
gatsbyStoreState: store.getState(),
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user