Rafael Sorto
04/05/2022, 5:44 PMFrank
Rafael Sorto
04/05/2022, 9:25 PMRafael Sorto
04/05/2022, 9:26 PMnpm run build
before executing sst deploy
so the next build happens twice :(Rafael Sorto
04/05/2022, 9:27 PMFrank
Rafael Sorto
04/05/2022, 11:39 PMRafael Sorto
04/05/2022, 11:39 PMAny commands to run post-build and pre-deploy. For example, you can run any custom code on the .serverless_nextjs directory e.g you can copy additional files into the Lambda: see #767 (comment) for an example for next-18n. Only applies during execution of the serverless command.
Rafael Sorto
04/05/2022, 11:39 PMRafael Sorto
04/05/2022, 11:40 PMRafael Sorto
04/05/2022, 11:40 PMRafael Sorto
04/07/2022, 6:52 PMJulien Bras
04/22/2022, 1:25 PMRafael Sorto
04/29/2022, 2:45 PMFrank
new NextjsSite(stack, "NextSite", {
path: "path/to/site",
commandHooks: {
afterBuild: ["npx next-sitemap"],
}
});
Rafael Sorto
06/10/2022, 9:13 PM