@monorise/sst 1.0.0-dev.2 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.sst/platform/src/components/aws/apigatewayv2.d.ts +1 -3
- package/dist/.sst/platform/src/components/aws/apigatewayv2.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/aurora.d.ts +4 -4
- package/dist/.sst/platform/src/components/aws/aurora.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/auth.d.ts +38 -3
- package/dist/.sst/platform/src/components/aws/auth.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/bucket.d.ts +102 -1
- package/dist/.sst/platform/src/components/aws/bucket.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/cluster.d.ts +1 -3
- package/dist/.sst/platform/src/components/aws/cluster.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/cognito-user-pool.d.ts +4 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/dynamo.d.ts +0 -1
- package/dist/.sst/platform/src/components/aws/dynamo.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/email.d.ts +1 -1
- package/dist/.sst/platform/src/components/aws/fargate.d.ts +34 -0
- package/dist/.sst/platform/src/components/aws/fargate.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/function.d.ts +1 -3
- package/dist/.sst/platform/src/components/aws/function.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/helpers/arn.d.ts +5 -0
- package/dist/.sst/platform/src/components/aws/helpers/arn.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/open-search.d.ts +4 -4
- package/dist/.sst/platform/src/components/aws/open-search.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/opencontrol.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/permission.d.ts +13 -0
- package/dist/.sst/platform/src/components/aws/permission.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/postgres.d.ts +3 -3
- package/dist/.sst/platform/src/components/aws/postgres.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/realtime.d.ts +6 -0
- package/dist/.sst/platform/src/components/aws/realtime.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/redis.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/remix.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/router.d.ts +20 -14
- package/dist/.sst/platform/src/components/aws/router.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/service.d.ts +26 -0
- package/dist/.sst/platform/src/components/aws/service.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/solid-start.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/ssr-site.d.ts +197 -6
- package/dist/.sst/platform/src/components/aws/ssr-site.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/static-site.d.ts +5 -5
- package/dist/.sst/platform/src/components/aws/static-site.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/step-functions/state.d.ts +34 -0
- package/dist/.sst/platform/src/components/aws/step-functions/state.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/step-functions.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/svelte-kit.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/tan-stack-start.d.ts +1 -1
- package/dist/.sst/platform/src/components/aws/task.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/aws/vpc.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/base/base-ssr-site.d.ts +1 -99
- package/dist/.sst/platform/src/components/base/base-ssr-site.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/base/base-static-site.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/cloudflare/binding.d.ts +1 -1
- package/dist/.sst/platform/src/components/cloudflare/binding.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/cloudflare/bucket.d.ts +4 -2
- package/dist/.sst/platform/src/components/cloudflare/bucket.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/cloudflare/cron.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/cloudflare/d1.d.ts +1 -1
- package/dist/.sst/platform/src/components/cloudflare/experimental/astro.d.ts +186 -0
- package/dist/.sst/platform/src/components/cloudflare/experimental/astro.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/experimental/index.d.ts +4 -0
- package/dist/.sst/platform/src/components/cloudflare/experimental/index.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts +171 -0
- package/dist/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts +222 -0
- package/dist/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts +1 -1
- package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/cloudflare/index.d.ts +4 -1
- package/dist/.sst/platform/src/components/cloudflare/index.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/cloudflare/kv.d.ts +8 -2
- package/dist/.sst/platform/src/components/cloudflare/kv.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts +18 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/queue.d.ts +1 -1
- package/dist/.sst/platform/src/components/cloudflare/ssr-site.d.ts +34 -42
- package/dist/.sst/platform/src/components/cloudflare/ssr-site.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/cloudflare/worker.d.ts +28 -6
- package/dist/.sst/platform/src/components/cloudflare/worker.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/component.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/duration.d.ts +2 -1
- package/dist/.sst/platform/src/components/duration.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/rpc/rpc.d.ts +1 -0
- package/dist/.sst/platform/src/components/rpc/rpc.d.ts.map +1 -1
- package/dist/.sst/platform/src/components/secret.d.ts +1 -1
- package/dist/.sst/platform/src/config.d.ts +15 -0
- package/dist/.sst/platform/src/config.d.ts.map +1 -1
- package/dist/.sst/platform/src/util/fs.d.ts +5 -0
- package/dist/.sst/platform/src/util/fs.d.ts.map +1 -0
- package/dist/components/dashboard.d.ts +2 -0
- package/dist/components/dashboard.d.ts.map +1 -0
- package/dist/components/monorise-core.d.ts.map +1 -1
- package/dist/components/q-function.d.ts +1 -1
- package/dist/components/q-function.d.ts.map +1 -1
- package/dist/components/single-table.d.ts +2 -1
- package/dist/components/single-table.d.ts.map +1 -1
- package/dist/index.js +605 -7
- package/dist/index.js.map +1 -1
- package/dist/tsup.config.d.ts +3 -0
- package/dist/tsup.config.d.ts.map +1 -0
- package/package.json +3 -3
- package/dist/.sst/platform/src/components/aws/analog.js +0 -118
- package/dist/.sst/platform/src/components/aws/analog.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.js +0 -110
- package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/apigateway-websocket.js +0 -409
- package/dist/.sst/platform/src/components/aws/apigateway-websocket.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.js +0 -55
- package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.js +0 -110
- package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.js +0 -34
- package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.js +0 -49
- package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.js +0 -85
- package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.js +0 -66
- package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/apigatewayv1.js +0 -749
- package/dist/.sst/platform/src/components/aws/apigatewayv1.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.js +0 -98
- package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.js +0 -28
- package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.js +0 -84
- package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.js +0 -55
- package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.js +0 -53
- package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/apigatewayv2.js +0 -648
- package/dist/.sst/platform/src/components/aws/apigatewayv2.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/app-sync-data-source.js +0 -208
- package/dist/.sst/platform/src/components/aws/app-sync-data-source.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/app-sync-function.js +0 -52
- package/dist/.sst/platform/src/components/aws/app-sync-function.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/app-sync-resolver.js +0 -70
- package/dist/.sst/platform/src/components/aws/app-sync-resolver.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/app-sync.js +0 -330
- package/dist/.sst/platform/src/components/aws/app-sync.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/astro.js +0 -156
- package/dist/.sst/platform/src/components/aws/astro.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/aurora.js +0 -678
- package/dist/.sst/platform/src/components/aws/aurora.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/auth-v1.js +0 -36
- package/dist/.sst/platform/src/components/aws/auth-v1.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/auth.js +0 -209
- package/dist/.sst/platform/src/components/aws/auth.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.js +0 -99
- package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/bucket-notification.js +0 -170
- package/dist/.sst/platform/src/components/aws/bucket-notification.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.js +0 -77
- package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.js +0 -99
- package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/bucket.js +0 -754
- package/dist/.sst/platform/src/components/aws/bucket.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/bus-base-subscriber.js +0 -19
- package/dist/.sst/platform/src/components/aws/bus-base-subscriber.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.js +0 -81
- package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.js +0 -63
- package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/bus.js +0 -350
- package/dist/.sst/platform/src/components/aws/bus.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/cdn.js +0 -234
- package/dist/.sst/platform/src/components/aws/cdn.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/cluster-v1.js +0 -245
- package/dist/.sst/platform/src/components/aws/cluster-v1.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/cluster.js +0 -321
- package/dist/.sst/platform/src/components/aws/cluster.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/cognito-identity-pool.js +0 -263
- package/dist/.sst/platform/src/components/aws/cognito-identity-pool.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/cognito-identity-provider.js +0 -67
- package/dist/.sst/platform/src/components/aws/cognito-identity-provider.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.js +0 -81
- package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/cognito-user-pool.js +0 -368
- package/dist/.sst/platform/src/components/aws/cognito-user-pool.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/cron.js +0 -200
- package/dist/.sst/platform/src/components/aws/cron.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/dns-validated-certificate.js +0 -55
- package/dist/.sst/platform/src/components/aws/dns-validated-certificate.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/dns.js +0 -121
- package/dist/.sst/platform/src/components/aws/dns.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.js +0 -79
- package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/dynamo.js +0 -291
- package/dist/.sst/platform/src/components/aws/dynamo.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/efs.js +0 -241
- package/dist/.sst/platform/src/components/aws/efs.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/email.js +0 -276
- package/dist/.sst/platform/src/components/aws/email.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/fargate.js +0 -434
- package/dist/.sst/platform/src/components/aws/fargate.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/function.js +0 -1041
- package/dist/.sst/platform/src/components/aws/function.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.js +0 -31
- package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.js +0 -2
- package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/helpers/arn.js +0 -86
- package/dist/.sst/platform/src/components/aws/helpers/arn.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/helpers/bootstrap.js +0 -7
- package/dist/.sst/platform/src/components/aws/helpers/bootstrap.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/helpers/container-builder.js +0 -27
- package/dist/.sst/platform/src/components/aws/helpers/container-builder.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/helpers/function-builder.js +0 -51
- package/dist/.sst/platform/src/components/aws/helpers/function-builder.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/helpers/provider.js +0 -34
- package/dist/.sst/platform/src/components/aws/helpers/provider.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/helpers/quota.js +0 -20
- package/dist/.sst/platform/src/components/aws/helpers/quota.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/helpers/site-builder.js +0 -36
- package/dist/.sst/platform/src/components/aws/helpers/site-builder.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/helpers/subscriber.js +0 -13
- package/dist/.sst/platform/src/components/aws/helpers/subscriber.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/https-redirect.js +0 -124
- package/dist/.sst/platform/src/components/aws/https-redirect.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/iam-edit.js +0 -40
- package/dist/.sst/platform/src/components/aws/iam-edit.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/index.js +0 -49
- package/dist/.sst/platform/src/components/aws/index.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.js +0 -82
- package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/kinesis-stream.js +0 -134
- package/dist/.sst/platform/src/components/aws/kinesis-stream.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/linkable.js +0 -25
- package/dist/.sst/platform/src/components/aws/linkable.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/logging.js +0 -26
- package/dist/.sst/platform/src/components/aws/logging.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/mysql.js +0 -514
- package/dist/.sst/platform/src/components/aws/mysql.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/nextjs.js +0 -444
- package/dist/.sst/platform/src/components/aws/nextjs.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/nuxt.js +0 -113
- package/dist/.sst/platform/src/components/aws/nuxt.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/open-search.js +0 -365
- package/dist/.sst/platform/src/components/aws/open-search.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/opencontrol.js +0 -164
- package/dist/.sst/platform/src/components/aws/opencontrol.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/permission.js +0 -19
- package/dist/.sst/platform/src/components/aws/permission.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/postgres-v1.js +0 -304
- package/dist/.sst/platform/src/components/aws/postgres-v1.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/postgres.js +0 -532
- package/dist/.sst/platform/src/components/aws/postgres.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/providers/bucket-files.js +0 -8
- package/dist/.sst/platform/src/components/aws/providers/bucket-files.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.js +0 -8
- package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.js +0 -8
- package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/providers/function-environment-update.js +0 -18
- package/dist/.sst/platform/src/components/aws/providers/function-environment-update.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.js +0 -8
- package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/providers/kv-keys.js +0 -8
- package/dist/.sst/platform/src/components/aws/providers/kv-keys.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.js +0 -8
- package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/providers/origin-access-control.js +0 -8
- package/dist/.sst/platform/src/components/aws/providers/origin-access-control.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.js +0 -8
- package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/providers/vector-table.js +0 -8
- package/dist/.sst/platform/src/components/aws/providers/vector-table.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.js +0 -81
- package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/queue.js +0 -322
- package/dist/.sst/platform/src/components/aws/queue.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/react.js +0 -157
- package/dist/.sst/platform/src/components/aws/react.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.js +0 -78
- package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/realtime.js +0 -221
- package/dist/.sst/platform/src/components/aws/realtime.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/redis-v1.js +0 -335
- package/dist/.sst/platform/src/components/aws/redis-v1.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/redis.js +0 -382
- package/dist/.sst/platform/src/components/aws/redis.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/remix.js +0 -212
- package/dist/.sst/platform/src/components/aws/remix.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/router-base-route.js +0 -40
- package/dist/.sst/platform/src/components/aws/router-base-route.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/router-bucket-route.js +0 -40
- package/dist/.sst/platform/src/components/aws/router-bucket-route.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/router-url-route.js +0 -51
- package/dist/.sst/platform/src/components/aws/router-url-route.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/router.js +0 -1156
- package/dist/.sst/platform/src/components/aws/router.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/service-v1.js +0 -606
- package/dist/.sst/platform/src/components/aws/service-v1.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/service.js +0 -924
- package/dist/.sst/platform/src/components/aws/service.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.js +0 -75
- package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.js +0 -59
- package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/sns-topic.js +0 -233
- package/dist/.sst/platform/src/components/aws/sns-topic.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/solid-start.js +0 -120
- package/dist/.sst/platform/src/components/aws/solid-start.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/ssr-site.js +0 -792
- package/dist/.sst/platform/src/components/aws/ssr-site.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/static-site.js +0 -583
- package/dist/.sst/platform/src/components/aws/static-site.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/step-functions/choice.js +0 -98
- package/dist/.sst/platform/src/components/aws/step-functions/choice.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/step-functions/fail.js +0 -25
- package/dist/.sst/platform/src/components/aws/step-functions/fail.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/step-functions/map.js +0 -108
- package/dist/.sst/platform/src/components/aws/step-functions/map.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/step-functions/parallel.js +0 -129
- package/dist/.sst/platform/src/components/aws/step-functions/parallel.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/step-functions/pass.js +0 -41
- package/dist/.sst/platform/src/components/aws/step-functions/pass.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/step-functions/state.js +0 -134
- package/dist/.sst/platform/src/components/aws/step-functions/state.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/step-functions/succeed.js +0 -25
- package/dist/.sst/platform/src/components/aws/step-functions/succeed.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/step-functions/task.js +0 -116
- package/dist/.sst/platform/src/components/aws/step-functions/task.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/step-functions/wait.js +0 -46
- package/dist/.sst/platform/src/components/aws/step-functions/wait.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/step-functions.js +0 -576
- package/dist/.sst/platform/src/components/aws/step-functions.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/svelte-kit.js +0 -144
- package/dist/.sst/platform/src/components/aws/svelte-kit.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/tan-stack-start.js +0 -143
- package/dist/.sst/platform/src/components/aws/tan-stack-start.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/task.js +0 -311
- package/dist/.sst/platform/src/components/aws/task.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/vector.js +0 -224
- package/dist/.sst/platform/src/components/aws/vector.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/vpc-v1.js +0 -355
- package/dist/.sst/platform/src/components/aws/vpc-v1.js.map +0 -1
- package/dist/.sst/platform/src/components/aws/vpc.js +0 -834
- package/dist/.sst/platform/src/components/aws/vpc.js.map +0 -1
- package/dist/.sst/platform/src/components/base/base-site.js +0 -47
- package/dist/.sst/platform/src/components/base/base-site.js.map +0 -1
- package/dist/.sst/platform/src/components/base/base-ssr-site.js +0 -72
- package/dist/.sst/platform/src/components/base/base-ssr-site.js.map +0 -1
- package/dist/.sst/platform/src/components/base/base-static-site.js +0 -87
- package/dist/.sst/platform/src/components/base/base-static-site.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/account-id.js +0 -2
- package/dist/.sst/platform/src/components/cloudflare/account-id.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/auth.js +0 -37
- package/dist/.sst/platform/src/components/cloudflare/auth.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/binding.js +0 -25
- package/dist/.sst/platform/src/components/cloudflare/binding.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/bucket.js +0 -98
- package/dist/.sst/platform/src/components/cloudflare/bucket.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/cron.js +0 -86
- package/dist/.sst/platform/src/components/cloudflare/cron.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/d1.js +0 -104
- package/dist/.sst/platform/src/components/cloudflare/d1.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/dns.js +0 -138
- package/dist/.sst/platform/src/components/cloudflare/dns.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.js +0 -39
- package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.js +0 -25
- package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/index.js +0 -13
- package/dist/.sst/platform/src/components/cloudflare/index.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/kv.js +0 -98
- package/dist/.sst/platform/src/components/cloudflare/kv.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.js +0 -11
- package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.js +0 -63
- package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.js +0 -83
- package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.js +0 -54
- package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/queue.js +0 -57
- package/dist/.sst/platform/src/components/cloudflare/queue.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/remix.d.ts +0 -223
- package/dist/.sst/platform/src/components/cloudflare/remix.d.ts.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/remix.js +0 -291
- package/dist/.sst/platform/src/components/cloudflare/remix.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/ssr-site.js +0 -177
- package/dist/.sst/platform/src/components/cloudflare/ssr-site.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/static-site.js +0 -315
- package/dist/.sst/platform/src/components/cloudflare/static-site.js.map +0 -1
- package/dist/.sst/platform/src/components/cloudflare/worker.js +0 -326
- package/dist/.sst/platform/src/components/cloudflare/worker.js.map +0 -1
- package/dist/.sst/platform/src/components/component.js +0 -395
- package/dist/.sst/platform/src/components/component.js.map +0 -1
- package/dist/.sst/platform/src/components/cpu.js +0 -9
- package/dist/.sst/platform/src/components/cpu.js.map +0 -1
- package/dist/.sst/platform/src/components/dns.js +0 -7
- package/dist/.sst/platform/src/components/dns.js.map +0 -1
- package/dist/.sst/platform/src/components/duration.js +0 -19
- package/dist/.sst/platform/src/components/duration.js.map +0 -1
- package/dist/.sst/platform/src/components/error.js +0 -6
- package/dist/.sst/platform/src/components/error.js.map +0 -1
- package/dist/.sst/platform/src/components/experimental/dev-command.js +0 -59
- package/dist/.sst/platform/src/components/experimental/dev-command.js.map +0 -1
- package/dist/.sst/platform/src/components/experimental/index.js +0 -2
- package/dist/.sst/platform/src/components/experimental/index.js.map +0 -1
- package/dist/.sst/platform/src/components/hint.d.ts +0 -7
- package/dist/.sst/platform/src/components/hint.d.ts.map +0 -1
- package/dist/.sst/platform/src/components/hint.js +0 -20
- package/dist/.sst/platform/src/components/hint.js.map +0 -1
- package/dist/.sst/platform/src/components/index.js +0 -16
- package/dist/.sst/platform/src/components/index.js.map +0 -1
- package/dist/.sst/platform/src/components/input.js +0 -2
- package/dist/.sst/platform/src/components/input.js.map +0 -1
- package/dist/.sst/platform/src/components/link.js +0 -138
- package/dist/.sst/platform/src/components/link.js.map +0 -1
- package/dist/.sst/platform/src/components/linkable.js +0 -244
- package/dist/.sst/platform/src/components/linkable.js.map +0 -1
- package/dist/.sst/platform/src/components/naming.js +0 -58
- package/dist/.sst/platform/src/components/naming.js.map +0 -1
- package/dist/.sst/platform/src/components/path.js +0 -5
- package/dist/.sst/platform/src/components/path.js.map +0 -1
- package/dist/.sst/platform/src/components/rpc/rpc.js +0 -120
- package/dist/.sst/platform/src/components/rpc/rpc.js.map +0 -1
- package/dist/.sst/platform/src/components/secret.js +0 -143
- package/dist/.sst/platform/src/components/secret.js.map +0 -1
- package/dist/.sst/platform/src/components/size.js +0 -29
- package/dist/.sst/platform/src/components/size.js.map +0 -1
- package/dist/.sst/platform/src/components/vercel/account-id.js +0 -2
- package/dist/.sst/platform/src/components/vercel/account-id.js.map +0 -1
- package/dist/.sst/platform/src/components/vercel/dns.js +0 -104
- package/dist/.sst/platform/src/components/vercel/dns.js.map +0 -1
- package/dist/.sst/platform/src/components/vercel/index.js +0 -3
- package/dist/.sst/platform/src/components/vercel/index.js.map +0 -1
- package/dist/.sst/platform/src/components/vercel/providers/dns-record.js +0 -8
- package/dist/.sst/platform/src/components/vercel/providers/dns-record.js.map +0 -1
- package/dist/.sst/platform/src/config.js +0 -5
- package/dist/.sst/platform/src/config.js.map +0 -1
- package/dist/.sst/platform/src/util/compare-semver.js +0 -24
- package/dist/.sst/platform/src/util/compare-semver.js.map +0 -1
- package/dist/.sst/platform/src/util/lazy.js +0 -12
- package/dist/.sst/platform/src/util/lazy.js.map +0 -1
- package/dist/.sst/platform/src/util/path-to-regex.d.ts +0 -128
- package/dist/.sst/platform/src/util/path-to-regex.d.ts.map +0 -1
- package/dist/.sst/platform/src/util/path-to-regex.js +0 -392
- package/dist/.sst/platform/src/util/path-to-regex.js.map +0 -1
- package/dist/.sst/platform/src/util/semaphore.js +0 -36
- package/dist/.sst/platform/src/util/semaphore.js.map +0 -1
- package/dist/.sst/platform/src/util/warn.js +0 -8
- package/dist/.sst/platform/src/util/warn.js.map +0 -1
- package/dist/components/monorise-core.js +0 -147
- package/dist/components/monorise-core.js.map +0 -1
- package/dist/components/q-function.js +0 -53
- package/dist/components/q-function.js.map +0 -1
- package/dist/components/single-table.js +0 -73
- package/dist/components/single-table.js.map +0 -1
- package/dist/constants/event.js +0 -74
- package/dist/constants/event.js.map +0 -1
- package/dist/constants/table.js +0 -3
- package/dist/constants/table.js.map +0 -1
- package/dist/sst.config.js +0 -24
- package/dist/sst.config.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { dynamic } from "@pulumi/pulumi";
|
|
2
|
-
import { rpc } from "../../rpc/rpc.js";
|
|
3
|
-
export class OriginAccessControl extends dynamic.Resource {
|
|
4
|
-
constructor(name, args, opts) {
|
|
5
|
-
super(new rpc.Provider("Aws.OriginAccessControl"), `${name}.sst.aws.OriginAccessControl`, args, opts);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=origin-access-control.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"origin-access-control.js","sourceRoot":"","sources":["../../../../../../../.sst/platform/src/components/aws/providers/origin-access-control.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,OAAO,EAAS,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAMvC,MAAM,OAAO,mBAAoB,SAAQ,OAAO,CAAC,QAAQ;IACvD,YACE,IAAY,EACZ,IAA+B,EAC/B,IAA4B;QAE5B,KAAK,CACH,IAAI,GAAG,CAAC,QAAQ,CAAC,yBAAyB,CAAC,EAC3C,GAAG,IAAI,8BAA8B,EACrC,IAAI,EACJ,IAAI,CACL,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { dynamic } from "@pulumi/pulumi";
|
|
2
|
-
import { rpc } from "../../rpc/rpc.js";
|
|
3
|
-
export class RdsRoleLookup extends dynamic.Resource {
|
|
4
|
-
constructor(name, args, opts) {
|
|
5
|
-
super(new rpc.Provider("Aws.RdsRoleLookup"), `${name}.sst.aws.RdsRoleLookup`, args, opts);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=rds-role-lookup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rds-role-lookup.js","sourceRoot":"","sources":["../../../../../../../.sst/platform/src/components/aws/providers/rds-role-lookup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAMvC,MAAM,OAAO,aAAc,SAAQ,OAAO,CAAC,QAAQ;IACjD,YACE,IAAY,EACZ,IAAyB,EACzB,IAA4B;QAE5B,KAAK,CACH,IAAI,GAAG,CAAC,QAAQ,CAAC,mBAAmB,CAAC,EACrC,GAAG,IAAI,wBAAwB,EAC/B,IAAI,EACJ,IAAI,CACL,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { dynamic } from "@pulumi/pulumi";
|
|
2
|
-
import { rpc } from "../../rpc/rpc.js";
|
|
3
|
-
export class VectorTable extends dynamic.Resource {
|
|
4
|
-
constructor(name, args, opts) {
|
|
5
|
-
super(new rpc.Provider("Aws.VectorTable"), `${name}.sst.aws.VectorTable`, args, opts);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=vector-table.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vector-table.js","sourceRoot":"","sources":["../../../../../../../.sst/platform/src/components/aws/providers/vector-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAUvC,MAAM,OAAO,WAAY,SAAQ,OAAO,CAAC,QAAQ;IAC/C,YACE,IAAY,EACZ,IAAyB,EACzB,IAA4B;QAE5B,KAAK,CACH,IAAI,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EACnC,GAAG,IAAI,sBAAsB,EAC7B,IAAI,EACJ,IAAI,CACL,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { output, } from "@pulumi/pulumi";
|
|
2
|
-
import { Component, transform } from "../component";
|
|
3
|
-
import { lambda } from "@pulumi/aws";
|
|
4
|
-
import { toSeconds } from "../duration";
|
|
5
|
-
import { functionBuilder } from "./helpers/function-builder";
|
|
6
|
-
import { parseFunctionArn } from "./helpers/arn";
|
|
7
|
-
/**
|
|
8
|
-
* The `QueueLambdaSubscriber` component is internally used by the `Queue` component to
|
|
9
|
-
* add a consumer to [Amazon SQS](https://aws.amazon.com/sqs/).
|
|
10
|
-
*
|
|
11
|
-
* :::note
|
|
12
|
-
* This component is not intended to be created directly.
|
|
13
|
-
* :::
|
|
14
|
-
*
|
|
15
|
-
* You'll find this component returned by the `subscribe` method of the `Queue` component.
|
|
16
|
-
*/
|
|
17
|
-
export class QueueLambdaSubscriber extends Component {
|
|
18
|
-
constructor(name, args, opts) {
|
|
19
|
-
super(__pulumiType, name, args, opts);
|
|
20
|
-
const self = this;
|
|
21
|
-
const queue = output(args.queue);
|
|
22
|
-
const fn = createFunction();
|
|
23
|
-
const eventSourceMapping = createEventSourceMapping();
|
|
24
|
-
this.fn = fn;
|
|
25
|
-
this.eventSourceMapping = eventSourceMapping;
|
|
26
|
-
function createFunction() {
|
|
27
|
-
return functionBuilder(`${name}Function`, args.subscriber, {
|
|
28
|
-
description: `Subscribed to ${name}`,
|
|
29
|
-
permissions: [
|
|
30
|
-
{
|
|
31
|
-
actions: [
|
|
32
|
-
"sqs:ChangeMessageVisibility",
|
|
33
|
-
"sqs:DeleteMessage",
|
|
34
|
-
"sqs:GetQueueAttributes",
|
|
35
|
-
"sqs:GetQueueUrl",
|
|
36
|
-
"sqs:ReceiveMessage",
|
|
37
|
-
],
|
|
38
|
-
resources: [queue.arn],
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
}, undefined, { parent: self });
|
|
42
|
-
}
|
|
43
|
-
function createEventSourceMapping() {
|
|
44
|
-
var _a;
|
|
45
|
-
return new lambda.EventSourceMapping(...transform((_a = args.transform) === null || _a === void 0 ? void 0 : _a.eventSourceMapping, `${name}EventSourceMapping`, {
|
|
46
|
-
functionResponseTypes: output(args.batch).apply((batch) => (batch === null || batch === void 0 ? void 0 : batch.partialResponses) ? ["ReportBatchItemFailures"] : []),
|
|
47
|
-
batchSize: output(args.batch).apply((batch) => { var _a; return (_a = batch === null || batch === void 0 ? void 0 : batch.size) !== null && _a !== void 0 ? _a : 10; }),
|
|
48
|
-
maximumBatchingWindowInSeconds: output(args.batch).apply((batch) => (batch === null || batch === void 0 ? void 0 : batch.window) ? toSeconds(batch.window) : 0),
|
|
49
|
-
eventSourceArn: queue.arn,
|
|
50
|
-
functionName: fn.arn.apply((arn) => parseFunctionArn(arn).functionName),
|
|
51
|
-
filterCriteria: args.filters && {
|
|
52
|
-
filters: output(args.filters).apply((filters) => filters.map((filter) => ({
|
|
53
|
-
pattern: JSON.stringify(filter),
|
|
54
|
-
}))),
|
|
55
|
-
},
|
|
56
|
-
}, { parent: self }));
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
61
|
-
*/
|
|
62
|
-
get nodes() {
|
|
63
|
-
const self = this;
|
|
64
|
-
return {
|
|
65
|
-
/**
|
|
66
|
-
* The Lambda function that'll be notified.
|
|
67
|
-
*/
|
|
68
|
-
get function() {
|
|
69
|
-
return self.fn.apply((fn) => fn.getFunction());
|
|
70
|
-
},
|
|
71
|
-
/**
|
|
72
|
-
* The Lambda event source mapping.
|
|
73
|
-
*/
|
|
74
|
-
eventSourceMapping: this.eventSourceMapping,
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
const __pulumiType = "sst:aws:QueueLambdaSubscriber";
|
|
79
|
-
// @ts-expect-error
|
|
80
|
-
QueueLambdaSubscriber.__pulumiType = __pulumiType;
|
|
81
|
-
//# sourceMappingURL=queue-lambda-subscriber.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"queue-lambda-subscriber.js","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/queue-lambda-subscriber.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,MAAM,GACP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAmB,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAkBjD;;;;;;;;;GASG;AACH,MAAM,OAAO,qBAAsB,SAAQ,SAAS;IAIlD,YAAY,IAAY,EAAE,IAAU,EAAE,IAA+B;QACnE,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAEtC,MAA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
|
-
import { output, jsonStringify, } from "@pulumi/pulumi";
|
|
2
|
-
import { Component, transform } from "../component";
|
|
3
|
-
import { VisibleError } from "../error";
|
|
4
|
-
import { hashStringToPrettyString, logicalName } from "../naming";
|
|
5
|
-
import { parseQueueArn } from "./helpers/arn";
|
|
6
|
-
import { QueueLambdaSubscriber } from "./queue-lambda-subscriber";
|
|
7
|
-
import { iam, sqs } from "@pulumi/aws";
|
|
8
|
-
import { toSeconds } from "../duration";
|
|
9
|
-
import { permission } from "./permission.js";
|
|
10
|
-
/**
|
|
11
|
-
* The `Queue` component lets you add a serverless queue to your app. It uses [Amazon SQS](https://aws.amazon.com/sqs/).
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
*
|
|
15
|
-
* #### Create a queue
|
|
16
|
-
*
|
|
17
|
-
* ```ts title="sst.config.ts"
|
|
18
|
-
* const queue = new sst.aws.Queue("MyQueue");
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* #### Make it a FIFO queue
|
|
22
|
-
*
|
|
23
|
-
* You can optionally make it a FIFO queue.
|
|
24
|
-
*
|
|
25
|
-
* ```ts {2} title="sst.config.ts"
|
|
26
|
-
* new sst.aws.Queue("MyQueue", {
|
|
27
|
-
* fifo: true
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* #### Add a subscriber
|
|
32
|
-
*
|
|
33
|
-
* ```ts title="sst.config.ts"
|
|
34
|
-
* queue.subscribe("src/subscriber.handler");
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* #### Link the queue to a resource
|
|
38
|
-
*
|
|
39
|
-
* You can link the queue to other resources, like a function or your Next.js app.
|
|
40
|
-
*
|
|
41
|
-
* ```ts title="sst.config.ts"
|
|
42
|
-
* new sst.aws.Nextjs("MyWeb", {
|
|
43
|
-
* link: [queue]
|
|
44
|
-
* });
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* Once linked, you can send messages to the queue from your function code.
|
|
48
|
-
*
|
|
49
|
-
* ```ts title="app/page.tsx" {1,7}
|
|
50
|
-
* import { Resource } from "sst";
|
|
51
|
-
* import { SQSClient, SendMessageCommand } from "@aws-sdk/client-sqs";
|
|
52
|
-
*
|
|
53
|
-
* const sqs = new SQSClient({});
|
|
54
|
-
*
|
|
55
|
-
* await sqs.send(new SendMessageCommand({
|
|
56
|
-
* QueueUrl: Resource.MyQueue.url,
|
|
57
|
-
* MessageBody: "Hello from Next.js!"
|
|
58
|
-
* }));
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
export class Queue extends Component {
|
|
62
|
-
constructor(name, args = {}, opts = {}) {
|
|
63
|
-
var _a, _b;
|
|
64
|
-
super(__pulumiType, name, args, opts);
|
|
65
|
-
this.isSubscribed = false;
|
|
66
|
-
const self = this;
|
|
67
|
-
this.constructorName = name;
|
|
68
|
-
this.constructorOpts = opts;
|
|
69
|
-
if (args && "ref" in args) {
|
|
70
|
-
const ref = reference();
|
|
71
|
-
this.queue = ref.queue;
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
const fifo = normalizeFifo();
|
|
75
|
-
const dlq = normalizeDlq();
|
|
76
|
-
const visibilityTimeout = output((_a = args === null || args === void 0 ? void 0 : args.visibilityTimeout) !== null && _a !== void 0 ? _a : "30 seconds");
|
|
77
|
-
const delay = output((_b = args === null || args === void 0 ? void 0 : args.delay) !== null && _b !== void 0 ? _b : "0 seconds");
|
|
78
|
-
this.queue = createQueue();
|
|
79
|
-
function reference() {
|
|
80
|
-
const ref = args;
|
|
81
|
-
const queue = sqs.Queue.get(`${name}Queue`, ref.queueUrl, undefined, {
|
|
82
|
-
parent: self,
|
|
83
|
-
});
|
|
84
|
-
return { queue };
|
|
85
|
-
}
|
|
86
|
-
function normalizeFifo() {
|
|
87
|
-
return output(args === null || args === void 0 ? void 0 : args.fifo).apply((v) => {
|
|
88
|
-
var _a;
|
|
89
|
-
if (!v)
|
|
90
|
-
return false;
|
|
91
|
-
if (v === true)
|
|
92
|
-
return {
|
|
93
|
-
contentBasedDeduplication: false,
|
|
94
|
-
};
|
|
95
|
-
return {
|
|
96
|
-
contentBasedDeduplication: (_a = v.contentBasedDeduplication) !== null && _a !== void 0 ? _a : false,
|
|
97
|
-
};
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
function normalizeDlq() {
|
|
101
|
-
if ((args === null || args === void 0 ? void 0 : args.dlq) === undefined)
|
|
102
|
-
return;
|
|
103
|
-
return output(args === null || args === void 0 ? void 0 : args.dlq).apply((v) => typeof v === "string" ? { queue: v, retry: 3 } : v);
|
|
104
|
-
}
|
|
105
|
-
function createQueue() {
|
|
106
|
-
var _a;
|
|
107
|
-
return new sqs.Queue(...transform((_a = args === null || args === void 0 ? void 0 : args.transform) === null || _a === void 0 ? void 0 : _a.queue, `${name}Queue`, {
|
|
108
|
-
fifoQueue: fifo.apply((v) => v !== false),
|
|
109
|
-
contentBasedDeduplication: fifo.apply((v) => v === false ? false : v.contentBasedDeduplication),
|
|
110
|
-
visibilityTimeoutSeconds: visibilityTimeout.apply((v) => toSeconds(v)),
|
|
111
|
-
delaySeconds: delay.apply((v) => toSeconds(v)),
|
|
112
|
-
redrivePolicy: dlq &&
|
|
113
|
-
jsonStringify({
|
|
114
|
-
deadLetterTargetArn: dlq.queue,
|
|
115
|
-
maxReceiveCount: dlq.retry,
|
|
116
|
-
}),
|
|
117
|
-
}, { parent: self }));
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* The ARN of the SQS Queue.
|
|
122
|
-
*/
|
|
123
|
-
get arn() {
|
|
124
|
-
return this.queue.arn;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* The SQS Queue URL.
|
|
128
|
-
*/
|
|
129
|
-
get url() {
|
|
130
|
-
return this.queue.url;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
134
|
-
*/
|
|
135
|
-
get nodes() {
|
|
136
|
-
return {
|
|
137
|
-
/**
|
|
138
|
-
* The Amazon SQS Queue.
|
|
139
|
-
*/
|
|
140
|
-
queue: this.queue,
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Subscribe to this queue.
|
|
145
|
-
*
|
|
146
|
-
* @param subscriber The function that'll be notified.
|
|
147
|
-
* @param args Configure the subscription.
|
|
148
|
-
*
|
|
149
|
-
* @example
|
|
150
|
-
*
|
|
151
|
-
* ```js title="sst.config.ts"
|
|
152
|
-
* queue.subscribe("src/subscriber.handler");
|
|
153
|
-
* ```
|
|
154
|
-
*
|
|
155
|
-
* Add a filter to the subscription.
|
|
156
|
-
*
|
|
157
|
-
* ```js title="sst.config.ts"
|
|
158
|
-
* queue.subscribe("src/subscriber.handler", {
|
|
159
|
-
* filters: [
|
|
160
|
-
* {
|
|
161
|
-
* body: {
|
|
162
|
-
* RequestCode: ["BBBB"]
|
|
163
|
-
* }
|
|
164
|
-
* }
|
|
165
|
-
* ]
|
|
166
|
-
* });
|
|
167
|
-
* ```
|
|
168
|
-
*
|
|
169
|
-
* Customize the subscriber function.
|
|
170
|
-
*
|
|
171
|
-
* ```js title="sst.config.ts"
|
|
172
|
-
* queue.subscribe({
|
|
173
|
-
* handler: "src/subscriber.handler",
|
|
174
|
-
* timeout: "60 seconds"
|
|
175
|
-
* });
|
|
176
|
-
* ```
|
|
177
|
-
*
|
|
178
|
-
* Or pass in the ARN of an existing Lambda function.
|
|
179
|
-
*
|
|
180
|
-
* ```js title="sst.config.ts"
|
|
181
|
-
* queue.subscribe("arn:aws:lambda:us-east-1:123456789012:function:my-function");
|
|
182
|
-
* ```
|
|
183
|
-
*/
|
|
184
|
-
subscribe(subscriber, args, opts) {
|
|
185
|
-
if (this.isSubscribed)
|
|
186
|
-
throw new VisibleError(`Cannot subscribe to the "${this.constructorName}" queue multiple times. An SQS Queue can only have one subscriber.`);
|
|
187
|
-
this.isSubscribed = true;
|
|
188
|
-
return Queue._subscribeFunction(this.constructorName, this.arn, subscriber, args, Object.assign(Object.assign({}, opts), { provider: this.constructorOpts.provider }));
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Subscribe to an SQS Queue that was not created in your app.
|
|
192
|
-
*
|
|
193
|
-
* @param queueArn The ARN of the SQS Queue to subscribe to.
|
|
194
|
-
* @param subscriber The function that'll be notified.
|
|
195
|
-
* @param args Configure the subscription.
|
|
196
|
-
*
|
|
197
|
-
* @example
|
|
198
|
-
*
|
|
199
|
-
* For example, let's say you have an existing SQS Queue with the following ARN.
|
|
200
|
-
*
|
|
201
|
-
* ```js title="sst.config.ts"
|
|
202
|
-
* const queueArn = "arn:aws:sqs:us-east-1:123456789012:MyQueue";
|
|
203
|
-
* ```
|
|
204
|
-
*
|
|
205
|
-
* You can subscribe to it by passing in the ARN.
|
|
206
|
-
*
|
|
207
|
-
* ```js title="sst.config.ts"
|
|
208
|
-
* sst.aws.Queue.subscribe(queueArn, "src/subscriber.handler");
|
|
209
|
-
* ```
|
|
210
|
-
*
|
|
211
|
-
* Add a filter to the subscription.
|
|
212
|
-
*
|
|
213
|
-
* ```js title="sst.config.ts"
|
|
214
|
-
* sst.aws.Queue.subscribe(queueArn, "src/subscriber.handler", {
|
|
215
|
-
* filters: [
|
|
216
|
-
* {
|
|
217
|
-
* body: {
|
|
218
|
-
* RequestCode: ["BBBB"]
|
|
219
|
-
* }
|
|
220
|
-
* }
|
|
221
|
-
* ]
|
|
222
|
-
* });
|
|
223
|
-
* ```
|
|
224
|
-
*
|
|
225
|
-
* Customize the subscriber function.
|
|
226
|
-
*
|
|
227
|
-
* ```js title="sst.config.ts"
|
|
228
|
-
* sst.aws.Queue.subscribe(queueArn, {
|
|
229
|
-
* handler: "src/subscriber.handler",
|
|
230
|
-
* timeout: "60 seconds"
|
|
231
|
-
* });
|
|
232
|
-
* ```
|
|
233
|
-
*/
|
|
234
|
-
static subscribe(queueArn, subscriber, args, opts) {
|
|
235
|
-
return output(queueArn).apply((queueArn) => this._subscribeFunction(logicalName(parseQueueArn(queueArn).queueName), queueArn, subscriber, args, opts));
|
|
236
|
-
}
|
|
237
|
-
static _subscribeFunction(name, queueArn, subscriber, args = {}, opts) {
|
|
238
|
-
return output(queueArn).apply((queueArn) => {
|
|
239
|
-
const suffix = logicalName(hashStringToPrettyString(queueArn, 6));
|
|
240
|
-
return new QueueLambdaSubscriber(`${name}Subscriber${suffix}`, Object.assign({ queue: { arn: queueArn }, subscriber }, args), opts);
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* Reference an existing SQS Queue with its queue URL. This is useful when you create a
|
|
245
|
-
* queue in one stage and want to share it in another stage. It avoids having to create
|
|
246
|
-
* a new queue in the other stage.
|
|
247
|
-
*
|
|
248
|
-
* :::tip
|
|
249
|
-
* You can use the `static get` method to share SQS queues across stages.
|
|
250
|
-
* :::
|
|
251
|
-
*
|
|
252
|
-
* @param name The name of the component.
|
|
253
|
-
* @param queueUrl The URL of the existing SQS Queue.
|
|
254
|
-
* @param opts? Resource options.
|
|
255
|
-
*
|
|
256
|
-
* @example
|
|
257
|
-
* Imagine you create a queue in the `dev` stage. And in your personal stage `frank`,
|
|
258
|
-
* instead of creating a new queue, you want to share the queue from `dev`.
|
|
259
|
-
*
|
|
260
|
-
* ```ts title="sst.config.ts"
|
|
261
|
-
* const queue = $app.stage === "frank"
|
|
262
|
-
* ? sst.aws.Queue.get("MyQueue", "https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue")
|
|
263
|
-
* : new sst.aws.Queue("MyQueue");
|
|
264
|
-
* ```
|
|
265
|
-
*
|
|
266
|
-
* Here `https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue` is the URL of the queue
|
|
267
|
-
* created in the `dev` stage. You can find this by outputting the queue URL in the `dev`
|
|
268
|
-
* stage.
|
|
269
|
-
*
|
|
270
|
-
* ```ts title="sst.config.ts"
|
|
271
|
-
* return queue.url;
|
|
272
|
-
* ```
|
|
273
|
-
*/
|
|
274
|
-
static get(name, queueUrl, opts) {
|
|
275
|
-
return new Queue(name, {
|
|
276
|
-
ref: true,
|
|
277
|
-
queueUrl,
|
|
278
|
-
}, opts);
|
|
279
|
-
}
|
|
280
|
-
/** @internal */
|
|
281
|
-
getSSTLink() {
|
|
282
|
-
return {
|
|
283
|
-
properties: {
|
|
284
|
-
url: this.url,
|
|
285
|
-
},
|
|
286
|
-
include: [
|
|
287
|
-
permission({
|
|
288
|
-
actions: ["sqs:*"],
|
|
289
|
-
resources: [this.arn],
|
|
290
|
-
}),
|
|
291
|
-
],
|
|
292
|
-
};
|
|
293
|
-
}
|
|
294
|
-
/** @internal */
|
|
295
|
-
static createPolicy(name, arn, opts) {
|
|
296
|
-
return new sqs.QueuePolicy(name, {
|
|
297
|
-
queueUrl: arn.apply((arn) => parseQueueArn(arn).queueUrl),
|
|
298
|
-
policy: iam.getPolicyDocumentOutput({
|
|
299
|
-
statements: [
|
|
300
|
-
{
|
|
301
|
-
actions: ["sqs:SendMessage"],
|
|
302
|
-
resources: [arn],
|
|
303
|
-
principals: [
|
|
304
|
-
{
|
|
305
|
-
type: "Service",
|
|
306
|
-
identifiers: [
|
|
307
|
-
"sns.amazonaws.com",
|
|
308
|
-
"s3.amazonaws.com",
|
|
309
|
-
"events.amazonaws.com",
|
|
310
|
-
],
|
|
311
|
-
},
|
|
312
|
-
],
|
|
313
|
-
},
|
|
314
|
-
],
|
|
315
|
-
}).json,
|
|
316
|
-
}, Object.assign({ retainOnDelete: true }, opts));
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
const __pulumiType = "sst:aws:Queue";
|
|
320
|
-
// @ts-expect-error
|
|
321
|
-
Queue.__pulumiType = __pulumiType;
|
|
322
|
-
//# sourceMappingURL=queue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/queue.ts"],"names":[],"mappings":"AAAA,OAAO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|
|
2
|
-
import path from "path";
|
|
3
|
-
import { output } from "@pulumi/pulumi";
|
|
4
|
-
import { SsrSite } from "./ssr-site.js";
|
|
5
|
-
/**
|
|
6
|
-
* The `React` component lets you deploy a React app built with [React Router](https://reactrouter.com/) app to AWS.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
*
|
|
10
|
-
* #### Minimal example
|
|
11
|
-
*
|
|
12
|
-
* Deploy a React app that's in the project root.
|
|
13
|
-
*
|
|
14
|
-
* ```js
|
|
15
|
-
* new sst.aws.React("MyWeb");
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* #### Change the path
|
|
19
|
-
*
|
|
20
|
-
* Deploys the React app in the `my-react-app/` directory.
|
|
21
|
-
*
|
|
22
|
-
* ```js {2}
|
|
23
|
-
* new sst.aws.React("MyWeb", {
|
|
24
|
-
* path: "my-react-app/"
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* #### Add a custom domain
|
|
29
|
-
*
|
|
30
|
-
* Set a custom domain for your React app.
|
|
31
|
-
*
|
|
32
|
-
* ```js {2}
|
|
33
|
-
* new sst.aws.React("MyWeb", {
|
|
34
|
-
* domain: "my-app.com"
|
|
35
|
-
* });
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* #### Redirect www to apex domain
|
|
39
|
-
*
|
|
40
|
-
* Redirect `www.my-app.com` to `my-app.com`.
|
|
41
|
-
*
|
|
42
|
-
* ```js {4}
|
|
43
|
-
* new sst.aws.React("MyWeb", {
|
|
44
|
-
* domain: {
|
|
45
|
-
* name: "my-app.com",
|
|
46
|
-
* redirects: ["www.my-app.com"]
|
|
47
|
-
* }
|
|
48
|
-
* });
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
* #### Link resources
|
|
52
|
-
*
|
|
53
|
-
* [Link resources](/docs/linking/) to your React app. This will grant permissions
|
|
54
|
-
* to the resources and allow you to access it in your app.
|
|
55
|
-
*
|
|
56
|
-
* ```ts {4}
|
|
57
|
-
* const bucket = new sst.aws.Bucket("MyBucket");
|
|
58
|
-
*
|
|
59
|
-
* new sst.aws.React("MyWeb", {
|
|
60
|
-
* link: [bucket]
|
|
61
|
-
* });
|
|
62
|
-
* ```
|
|
63
|
-
*
|
|
64
|
-
* You can use the [SDK](/docs/reference/sdk/) to access the linked resources
|
|
65
|
-
* in your React app.
|
|
66
|
-
*
|
|
67
|
-
* ```ts title="app/root.tsx"
|
|
68
|
-
* import { Resource } from "sst";
|
|
69
|
-
*
|
|
70
|
-
* console.log(Resource.MyBucket.name);
|
|
71
|
-
* ```
|
|
72
|
-
*/
|
|
73
|
-
export class React extends SsrSite {
|
|
74
|
-
constructor(name, args = {}, opts = {}) {
|
|
75
|
-
super(__pulumiType, name, args, opts);
|
|
76
|
-
}
|
|
77
|
-
normalizeBuildCommand() { }
|
|
78
|
-
buildPlan(outputPath) {
|
|
79
|
-
return output(outputPath).apply((outputPath) => {
|
|
80
|
-
const assetsPath = path.join("build", "client");
|
|
81
|
-
const serverPath = (() => {
|
|
82
|
-
const p = path.join("build", "server");
|
|
83
|
-
return fs.existsSync(path.join(outputPath, p)) ? p : undefined;
|
|
84
|
-
})();
|
|
85
|
-
const indexPage = "index.html";
|
|
86
|
-
// Get base configured in vite config ie. "/docs/"
|
|
87
|
-
const viteBase = (() => {
|
|
88
|
-
try {
|
|
89
|
-
const viteConfig = path.join(outputPath, "vite.config.ts");
|
|
90
|
-
const content = fs.readFileSync(viteConfig, "utf-8");
|
|
91
|
-
const match = content.match(/["']?base["']?:\s*["']([^"]+)["']/);
|
|
92
|
-
return match ? match[1] : undefined;
|
|
93
|
-
}
|
|
94
|
-
catch (e) { }
|
|
95
|
-
})();
|
|
96
|
-
// Get base configured in react-router config ie. "/docs/"
|
|
97
|
-
const reactRouterBase = (() => {
|
|
98
|
-
try {
|
|
99
|
-
const rrConfig = path.join(outputPath, "react-router.config.ts");
|
|
100
|
-
const content = fs.readFileSync(rrConfig, "utf-8");
|
|
101
|
-
const match = content.match(/["']?basename["']?:\s*["']([^"]+)["']/);
|
|
102
|
-
return match ? match[1] : undefined;
|
|
103
|
-
}
|
|
104
|
-
catch (e) { }
|
|
105
|
-
})();
|
|
106
|
-
if (viteBase) {
|
|
107
|
-
if (!viteBase.endsWith("/"))
|
|
108
|
-
throw new Error(`The "base" value in vite.config.ts must end with a trailing slash ("/"). This is required for correct asset path construction.`);
|
|
109
|
-
if (!reactRouterBase)
|
|
110
|
-
throw new Error(`Found "base" configured in vite.config.ts but missing "basename" in react-router.config.ts. Both configurations are required.`);
|
|
111
|
-
}
|
|
112
|
-
if (reactRouterBase) {
|
|
113
|
-
if (reactRouterBase.endsWith("/"))
|
|
114
|
-
throw new Error(`The "basename" value in react-router.config.ts must not end with a trailing slash ("/"). This ensures the root URL is accessible without a trailing slash.`);
|
|
115
|
-
if (!viteBase)
|
|
116
|
-
throw new Error(`Found "basename" configured in react-router.config.ts but missing "base" in vite.config.ts. Both configurations are required.`);
|
|
117
|
-
}
|
|
118
|
-
return {
|
|
119
|
-
base: reactRouterBase,
|
|
120
|
-
server: serverPath
|
|
121
|
-
? (() => {
|
|
122
|
-
// React does perform their own internal ESBuild process, but it doesn't bundle
|
|
123
|
-
// 3rd party dependencies by default. In the interest of keeping deployments
|
|
124
|
-
// seamless for users we will create a server bundle with all dependencies included.
|
|
125
|
-
fs.copyFileSync(path.join($cli.paths.platform, "functions", "react-server", "server.mjs"), path.join(outputPath, "build", "server.mjs"));
|
|
126
|
-
return {
|
|
127
|
-
handler: path.join(outputPath, "build", "server.handler"),
|
|
128
|
-
streaming: true,
|
|
129
|
-
};
|
|
130
|
-
})()
|
|
131
|
-
: undefined,
|
|
132
|
-
assets: [
|
|
133
|
-
{
|
|
134
|
-
from: assetsPath,
|
|
135
|
-
to: "",
|
|
136
|
-
cached: true,
|
|
137
|
-
versionedSubDir: "assets",
|
|
138
|
-
},
|
|
139
|
-
],
|
|
140
|
-
custom404: serverPath ? undefined : `/${indexPage}`,
|
|
141
|
-
};
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* The URL of the React app.
|
|
146
|
-
*
|
|
147
|
-
* If the `domain` is set, this is the URL with the custom domain.
|
|
148
|
-
* Otherwise, it's the auto-generated CloudFront URL.
|
|
149
|
-
*/
|
|
150
|
-
get url() {
|
|
151
|
-
return super.url;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
const __pulumiType = "sst:aws:React";
|
|
155
|
-
// @ts-expect-error
|
|
156
|
-
React.__pulumiType = __pulumiType;
|
|
157
|
-
//# sourceMappingURL=react.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react.js","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAoC,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAQ,OAAO,EAAe,MAAM,eAAe,CAAC;AAgV3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,MAAM,OAAO,KAAM,SAAQ,OAAO;IAChC,YACE,IAAY,EACZ,OAAkB,EAAE,EACpB,OAAiC,EAAE;QAEnC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACxC,CAAC;IAES,qBAAqB,KAAK,CAAC;IAE3B,SAAS,CAAC,UAA0B;QAC5C,OAAO,MAAM,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,EAAE;YAC7C,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,MAAM,UAAU,GAAG,CAAC,GAAG,EAAE;gBACvB,MAAM,CAAC,GAAG,I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