Closed kane50613 closed 3 months ago
Allowing custom vpc configuration #261
To access the function args before this PR merged, use the transform function as below:
transform
new sst.aws.Nextjs("App", { transform: { server(fn) { fn.vpc = { subnets: ["..."], securityGroups: ["..."], }; fn.permissions = [ // @ts-expect-error ...fn.permissions, { actions: ["..."], resources: ["..."], }, ]; }, }, });
Thanks @kane50613!
In v0.0.324, u can set vpc like this — https://ion.sst.dev/docs/component/aws/nextjs/#vpc
Also fixed permissions
permissions
that's great news to hear!
Allowing custom vpc configuration #261
To access the function args before this PR merged, use the
transform
function as below: