Skip to content

Commit 4b1b68f

Browse files
committed
feat: target node 16
1 parent 8f9eb10 commit 4b1b68f

File tree

4 files changed

+602
-279
lines changed

4 files changed

+602
-279
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ export default function ({ debug = false, customStaticWebAppConfig = {} } = {})
5555
],
5656
navigationFallback: {
5757
rewrite: ssrFunctionRoute
58+
},
59+
platform: {
60+
apiRuntime: 'node:16'
5861
}
5962
};
6063

@@ -99,7 +102,7 @@ export default function ({ debug = false, customStaticWebAppConfig = {} } = {})
99102
outfile: join(apiDir, 'index.js'),
100103
bundle: true,
101104
platform: 'node',
102-
target: 'node12'
105+
target: 'node16'
103106
};
104107

105108
await esbuild.build(default_options);

0 commit comments

Comments
 (0)