monorise 0.0.1
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/base/index.d.ts +254 -0
- package/dist/base/index.js +44 -0
- package/dist/base/index.js.map +1 -0
- package/dist/cli/cli.d.ts +1 -0
- package/dist/cli/cli.js +461 -0
- package/dist/cli/cli.js.map +1 -0
- package/dist/core/index.d.ts +4767 -0
- package/dist/core/index.js +7941 -0
- package/dist/core/index.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +11 -0
- package/dist/react/actions/app.action.d.ts +46 -0
- package/dist/react/actions/app.action.d.ts.map +1 -0
- package/dist/react/actions/auth.action.d.ts +24 -0
- package/dist/react/actions/auth.action.d.ts.map +1 -0
- package/dist/react/actions/config.action.d.ts +10 -0
- package/dist/react/actions/config.action.d.ts.map +1 -0
- package/dist/react/actions/core.action.d.ts +219 -0
- package/dist/react/actions/core.action.d.ts.map +1 -0
- package/dist/react/index.d.ts +1093 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +2344 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/lib/api.d.ts +38 -0
- package/dist/react/lib/api.d.ts.map +1 -0
- package/dist/react/lib/constant.d.ts +2 -0
- package/dist/react/lib/constant.d.ts.map +1 -0
- package/dist/react/lib/entity.d.ts +10 -0
- package/dist/react/lib/entity.d.ts.map +1 -0
- package/dist/react/lib/utils.d.ts +10 -0
- package/dist/react/lib/utils.d.ts.map +1 -0
- package/dist/react/services/auth.service.d.ts +21 -0
- package/dist/react/services/auth.service.d.ts.map +1 -0
- package/dist/react/services/core.service.d.ts +76 -0
- package/dist/react/services/core.service.d.ts.map +1 -0
- package/dist/react/services/filestore.service.d.ts +22 -0
- package/dist/react/services/filestore.service.d.ts.map +1 -0
- package/dist/react/store/monorise.store.d.ts +169 -0
- package/dist/react/store/monorise.store.d.ts.map +1 -0
- package/dist/react/tsup.config.d.ts +3 -0
- package/dist/react/tsup.config.d.ts.map +1 -0
- package/dist/react/types/api.type.d.ts +30 -0
- package/dist/react/types/api.type.d.ts.map +1 -0
- package/dist/react/types/axios.type.d.ts +13 -0
- package/dist/react/types/axios.type.d.ts.map +1 -0
- package/dist/react/types/monorise.type.d.ts +8 -0
- package/dist/react/types/monorise.type.d.ts.map +1 -0
- package/dist/react/types/mutual.type.d.ts +21 -0
- package/dist/react/types/mutual.type.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/analog.d.ts +423 -0
- package/dist/sst/.sst/platform/src/components/aws/analog.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts +74 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts +542 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts +36 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts +39 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts +1002 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts +54 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts +28 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts +59 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts +54 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts +44 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts +931 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts +52 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-function.d.ts +33 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-function.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-resolver.d.ts +41 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-resolver.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts +638 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/astro.d.ts +421 -0
- package/dist/sst/.sst/platform/src/components/aws/astro.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts +702 -0
- package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts +26 -0
- package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/auth.d.ts +295 -0
- package/dist/sst/.sst/platform/src/components/aws/auth.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts +61 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-notification.d.ts +47 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-notification.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts +1216 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-base-subscriber.d.ts +20 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-base-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts +49 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts +44 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus.d.ts +403 -0
- package/dist/sst/.sst/platform/src/components/aws/bus.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts +299 -0
- package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster-v1.d.ts +882 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts +306 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts +194 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-provider.d.ts +38 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-provider.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts +50 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts +603 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cron.d.ts +250 -0
- package/dist/sst/.sst/platform/src/components/aws/cron.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dns-validated-certificate.d.ts +27 -0
- package/dist/sst/.sst/platform/src/components/aws/dns-validated-certificate.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dns.d.ts +94 -0
- package/dist/sst/.sst/platform/src/components/aws/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts +568 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/efs.d.ts +217 -0
- package/dist/sst/.sst/platform/src/components/aws/efs.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/email.d.ts +291 -0
- package/dist/sst/.sst/platform/src/components/aws/email.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts +803 -0
- package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/function.d.ts +1629 -0
- package/dist/sst/.sst/platform/src/components/aws/function.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts +144 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts +40 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/bootstrap.d.ts +13 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/bootstrap.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/container-builder.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/container-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts +10 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts +7 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts +6 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/https-redirect.d.ts +38 -0
- package/dist/sst/.sst/platform/src/components/aws/https-redirect.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/iam-edit.d.ts +39 -0
- package/dist/sst/.sst/platform/src/components/aws/iam-edit.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/index.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts +249 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts +17 -0
- package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/logging.d.ts +26 -0
- package/dist/sst/.sst/platform/src/components/aws/logging.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts +496 -0
- package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts +517 -0
- package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/nuxt.d.ts +495 -0
- package/dist/sst/.sst/platform/src/components/aws/nuxt.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts +295 -0
- package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts +165 -0
- package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/permission.d.ts +40 -0
- package/dist/sst/.sst/platform/src/components/aws/permission.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts +317 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts +500 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/bucket-files.d.ts +18 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/bucket-files.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts +13 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/function-environment-update.d.ts +29 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/function-environment-update.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-keys.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-keys.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/origin-access-control.d.ts +8 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/origin-access-control.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts +8 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/vector-table.d.ts +12 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/vector-table.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/queue.d.ts +485 -0
- package/dist/sst/.sst/platform/src/components/aws/queue.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/react.d.ts +416 -0
- package/dist/sst/.sst/platform/src/components/aws/react.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts +232 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts +338 -0
- package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/redis.d.ts +364 -0
- package/dist/sst/.sst/platform/src/components/aws/redis.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/remix.d.ts +423 -0
- package/dist/sst/.sst/platform/src/components/aws/remix.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router-base-route.d.ts +28 -0
- package/dist/sst/.sst/platform/src/components/aws/router-base-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router-bucket-route.d.ts +29 -0
- package/dist/sst/.sst/platform/src/components/aws/router-bucket-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router-url-route.d.ts +28 -0
- package/dist/sst/.sst/platform/src/components/aws/router-url-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router.d.ts +1272 -0
- package/dist/sst/.sst/platform/src/components/aws/router.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/service-v1.d.ts +78 -0
- package/dist/sst/.sst/platform/src/components/aws/service-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/service.d.ts +1625 -0
- package/dist/sst/.sst/platform/src/components/aws/service.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts +389 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/solid-start.d.ts +414 -0
- package/dist/sst/.sst/platform/src/components/aws/solid-start.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts +685 -0
- package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/static-site.d.ts +736 -0
- package/dist/sst/.sst/platform/src/components/aws/static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/choice.d.ts +73 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/choice.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/fail.d.ts +63 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/fail.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/map.d.ts +236 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/map.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/parallel.d.ts +127 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/parallel.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/pass.d.ts +39 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/pass.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts +231 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/succeed.d.ts +26 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/succeed.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts +477 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/wait.d.ts +91 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/wait.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts +473 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/svelte-kit.d.ts +417 -0
- package/dist/sst/.sst/platform/src/components/aws/svelte-kit.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts +354 -0
- package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/task.d.ts +322 -0
- package/dist/sst/.sst/platform/src/components/aws/task.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/vector.d.ts +150 -0
- package/dist/sst/.sst/platform/src/components/aws/vector.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc-v1.d.ts +208 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts +444 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/base/base-site.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/base/base-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/base/base-ssr-site.d.ts +13 -0
- package/dist/sst/.sst/platform/src/components/base/base-ssr-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/base/base-static-site.d.ts +199 -0
- package/dist/sst/.sst/platform/src/components/base/base-static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/account-id.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/account-id.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/auth.d.ts +22 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/auth.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts +69 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts +103 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts +121 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts +107 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/dns.d.ts +94 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/astro.d.ts +186 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/astro.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/index.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts +171 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts +222 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts +19 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts +10 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts +16 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts +107 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts +20 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts +23 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts +18 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts +22 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts +22 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts +60 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/ssr-site.d.ts +51 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/ssr-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts +262 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts +295 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/component.d.ts +37 -0
- package/dist/sst/.sst/platform/src/components/component.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cpu.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/cpu.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/dns.d.ts +59 -0
- package/dist/sst/.sst/platform/src/components/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/duration.d.ts +7 -0
- package/dist/sst/.sst/platform/src/components/duration.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/error.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/error.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/experimental/dev-command.d.ts +99 -0
- package/dist/sst/.sst/platform/src/components/experimental/dev-command.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/experimental/index.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/experimental/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/index.d.ts +16 -0
- package/dist/sst/.sst/platform/src/components/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/input.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/input.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/link.d.ts +41 -0
- package/dist/sst/.sst/platform/src/components/link.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/linkable.d.ts +271 -0
- package/dist/sst/.sst/platform/src/components/linkable.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/naming.d.ts +7 -0
- package/dist/sst/.sst/platform/src/components/naming.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/path.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/path.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/rpc/rpc.d.ts +19 -0
- package/dist/sst/.sst/platform/src/components/rpc/rpc.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/secret.d.ts +125 -0
- package/dist/sst/.sst/platform/src/components/secret.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/size.d.ts +5 -0
- package/dist/sst/.sst/platform/src/components/size.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/account-id.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/vercel/account-id.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/dns.d.ts +73 -0
- package/dist/sst/.sst/platform/src/components/vercel/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/index.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/vercel/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/providers/dns-record.d.ts +14 -0
- package/dist/sst/.sst/platform/src/components/vercel/providers/dns-record.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/config.d.ts +1258 -0
- package/dist/sst/.sst/platform/src/config.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/compare-semver.d.ts +4 -0
- package/dist/sst/.sst/platform/src/util/compare-semver.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/fs.d.ts +5 -0
- package/dist/sst/.sst/platform/src/util/fs.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/lazy.d.ts +2 -0
- package/dist/sst/.sst/platform/src/util/lazy.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/semaphore.d.ts +9 -0
- package/dist/sst/.sst/platform/src/util/semaphore.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/warn.d.ts +2 -0
- package/dist/sst/.sst/platform/src/util/warn.d.ts.map +1 -0
- package/dist/sst/components/dashboard.d.ts +2 -0
- package/dist/sst/components/dashboard.d.ts.map +1 -0
- package/dist/sst/components/monorise-core.d.ts +18 -0
- package/dist/sst/components/monorise-core.d.ts.map +1 -0
- package/dist/sst/components/q-function.d.ts +17 -0
- package/dist/sst/components/q-function.d.ts.map +1 -0
- package/dist/sst/components/single-table.d.ts +14 -0
- package/dist/sst/components/single-table.d.ts.map +1 -0
- package/dist/sst/constants/event.d.ts +73 -0
- package/dist/sst/constants/event.d.ts.map +1 -0
- package/dist/sst/constants/table.d.ts +3 -0
- package/dist/sst/constants/table.d.ts.map +1 -0
- package/dist/sst/index.d.ts +11 -0
- package/dist/sst/index.d.ts.map +1 -0
- package/dist/sst/index.js +609 -0
- package/dist/sst/index.js.map +1 -0
- package/dist/sst/sst.config.d.ts +3 -0
- package/dist/sst/sst.config.d.ts.map +1 -0
- package/dist/sst/tsup.config.d.ts +3 -0
- package/dist/sst/tsup.config.d.ts.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,736 @@
|
|
|
1
|
+
import { ComponentResourceOptions, Output } from "@pulumi/pulumi";
|
|
2
|
+
import { Cdn, CdnArgs } from "./cdn.js";
|
|
3
|
+
import { Bucket, BucketArgs } from "./bucket.js";
|
|
4
|
+
import { Component, Prettify, Transform } from "../component.js";
|
|
5
|
+
import { Link } from "../link.js";
|
|
6
|
+
import { Input } from "../input.js";
|
|
7
|
+
import { BaseSiteDev } from "../base/base-site.js";
|
|
8
|
+
import { BaseStaticSiteArgs, BaseStaticSiteAssets } from "../base/base-static-site.js";
|
|
9
|
+
import { RouterRouteArgs, RouterRouteArgsDeprecated } from "./router.js";
|
|
10
|
+
export interface StaticSiteArgs extends BaseStaticSiteArgs {
|
|
11
|
+
/**
|
|
12
|
+
* Configure how this component works in `sst dev`.
|
|
13
|
+
*
|
|
14
|
+
* :::note
|
|
15
|
+
* In `sst dev` your static site is run in dev mode; it's not deployed.
|
|
16
|
+
* :::
|
|
17
|
+
*
|
|
18
|
+
* Instead of deploying your static site, this starts it in dev mode. It's run
|
|
19
|
+
* as a separate process in the `sst dev` multiplexer. Read more about
|
|
20
|
+
* [`sst dev`](/docs/reference/cli/#dev).
|
|
21
|
+
*
|
|
22
|
+
* To disable dev mode, pass in `false`.
|
|
23
|
+
*/
|
|
24
|
+
dev?: false | Prettify<BaseSiteDev>;
|
|
25
|
+
/**
|
|
26
|
+
* Path to the directory where your static site is located. By default this assumes your static site is in the root of your SST app.
|
|
27
|
+
*
|
|
28
|
+
* This directory will be uploaded to S3. The path is relative to your `sst.config.ts`.
|
|
29
|
+
*
|
|
30
|
+
* :::note
|
|
31
|
+
* If the `build` options are specified, `build.output` will be uploaded to S3 instead.
|
|
32
|
+
* :::
|
|
33
|
+
*
|
|
34
|
+
* If you are using a static site generator, like Vite, you'll need to configure the `build` options. When these are set, the `build.output` directory will be uploaded to S3 instead.
|
|
35
|
+
*
|
|
36
|
+
* @default `"."`
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
*
|
|
40
|
+
* Change where your static site is located.
|
|
41
|
+
*
|
|
42
|
+
* ```js
|
|
43
|
+
* {
|
|
44
|
+
* path: "packages/web"
|
|
45
|
+
* }
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
path?: BaseStaticSiteArgs["path"];
|
|
49
|
+
/**
|
|
50
|
+
* Configure CloudFront Functions to customize the behavior of HTTP requests and responses at the edge.
|
|
51
|
+
*/
|
|
52
|
+
edge?: Input<{
|
|
53
|
+
/**
|
|
54
|
+
* Configure the viewer request function.
|
|
55
|
+
*
|
|
56
|
+
* The viewer request function can be used to modify incoming requests before they
|
|
57
|
+
* reach your origin server. For example, you can redirect users, rewrite URLs,
|
|
58
|
+
* or add headers.
|
|
59
|
+
*
|
|
60
|
+
* By default, a viewer request function is created to:
|
|
61
|
+
* - Disable CloudFront default URL if custom domain is set.
|
|
62
|
+
* - Rewrite URLs to append `index.html` to the URL if the URL ends with a `/`.
|
|
63
|
+
* - Rewrite URLs to append `.html` to the URL if the URL does not contain a file extension.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
*
|
|
67
|
+
* You can pass in the code to inject into the function. The provided code will
|
|
68
|
+
* be injected at the start of the function.
|
|
69
|
+
*
|
|
70
|
+
* ```js
|
|
71
|
+
* async function handler(event) {
|
|
72
|
+
* // User injected code
|
|
73
|
+
*
|
|
74
|
+
* // Default behavior code
|
|
75
|
+
*
|
|
76
|
+
* return event.request;
|
|
77
|
+
* }
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* To add a custom header to all requests.
|
|
81
|
+
*
|
|
82
|
+
* ```js
|
|
83
|
+
* {
|
|
84
|
+
* edge: {
|
|
85
|
+
* viewerRequest: {
|
|
86
|
+
* injection: `event.request.headers["x-foo"] = { value: "bar" };`
|
|
87
|
+
* }
|
|
88
|
+
* }
|
|
89
|
+
* }
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* You can use this add basic auth, [check out an example](/docs/examples/#aws-static-site-basic-auth).
|
|
93
|
+
*/
|
|
94
|
+
viewerRequest?: Input<{
|
|
95
|
+
/**
|
|
96
|
+
* The code to inject into the viewer request function.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* To add a custom header to all requests.
|
|
100
|
+
*
|
|
101
|
+
* ```js
|
|
102
|
+
* {
|
|
103
|
+
* edge: {
|
|
104
|
+
* viewerRequest: {
|
|
105
|
+
* injection: `event.request.headers["x-foo"] = { value: "bar" };`
|
|
106
|
+
* }
|
|
107
|
+
* }
|
|
108
|
+
* }
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
injection: Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* The KV store to associate with the viewer request function.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```js
|
|
117
|
+
* {
|
|
118
|
+
* edge: {
|
|
119
|
+
* viewerRequest: {
|
|
120
|
+
* kvStore: "arn:aws:cloudfront::123456789012:key-value-store/my-store"
|
|
121
|
+
* }
|
|
122
|
+
* }
|
|
123
|
+
* }
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
kvStore?: Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* @deprecated Use `kvStore` instead because CloudFront Functions only support one KV store.
|
|
129
|
+
*/
|
|
130
|
+
kvStores?: Input<Input<string>[]>;
|
|
131
|
+
}>;
|
|
132
|
+
/**
|
|
133
|
+
* Configure the viewer response function.
|
|
134
|
+
*
|
|
135
|
+
* The viewer response function can be used to modify outgoing responses before they
|
|
136
|
+
* are sent to the client. For example, you can add security headers or change the response
|
|
137
|
+
* status code.
|
|
138
|
+
*
|
|
139
|
+
* By default, no viewer response function is set. A new function will be created with
|
|
140
|
+
* the provided code.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
*
|
|
144
|
+
* You can pass in the code to inject into the function. And a CloudFront function will
|
|
145
|
+
* be created with the provided code injected into it.
|
|
146
|
+
*
|
|
147
|
+
* ```js
|
|
148
|
+
* async function handler(event) {
|
|
149
|
+
* // User injected code
|
|
150
|
+
*
|
|
151
|
+
* return event.response;
|
|
152
|
+
* }
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
155
|
+
* To add a custom header to all responses.
|
|
156
|
+
*
|
|
157
|
+
* ```js
|
|
158
|
+
* {
|
|
159
|
+
* edge: {
|
|
160
|
+
* viewerResponse: {
|
|
161
|
+
* injection: `event.response.headers["x-foo"] = { value: "bar" };`
|
|
162
|
+
* }
|
|
163
|
+
* }
|
|
164
|
+
* }
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
167
|
+
viewerResponse?: Input<{
|
|
168
|
+
/**
|
|
169
|
+
* The code to inject into the viewer response function.
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* To add a custom header to all responses.
|
|
173
|
+
*
|
|
174
|
+
* ```js
|
|
175
|
+
* {
|
|
176
|
+
* edge: {
|
|
177
|
+
* viewerResponse: {
|
|
178
|
+
* injection: `event.response.headers["x-foo"] = { value: "bar" };`
|
|
179
|
+
* }
|
|
180
|
+
* }
|
|
181
|
+
* }
|
|
182
|
+
* ```
|
|
183
|
+
*/
|
|
184
|
+
injection: Input<string>;
|
|
185
|
+
/**
|
|
186
|
+
* The KV store to associate with the viewer response function.
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* ```js
|
|
190
|
+
* {
|
|
191
|
+
* server: {
|
|
192
|
+
* edge: {
|
|
193
|
+
* viewerResponse: {
|
|
194
|
+
* kvStore: "arn:aws:cloudfront::123456789012:key-value-store/my-store"
|
|
195
|
+
* }
|
|
196
|
+
* }
|
|
197
|
+
* }
|
|
198
|
+
* }
|
|
199
|
+
* ```
|
|
200
|
+
*/
|
|
201
|
+
kvStore?: Input<string>;
|
|
202
|
+
/**
|
|
203
|
+
* @deprecated Use `kvStore` instead because CloudFront Functions only support one KV store.
|
|
204
|
+
*/
|
|
205
|
+
kvStores?: Input<Input<string>[]>;
|
|
206
|
+
}>;
|
|
207
|
+
}>;
|
|
208
|
+
/**
|
|
209
|
+
* Configure if your static site needs to be built. This is useful if you are using a static site generator.
|
|
210
|
+
*
|
|
211
|
+
* The `build.output` directory will be uploaded to S3 instead.
|
|
212
|
+
* @example
|
|
213
|
+
* For a Vite project using npm this might look like this.
|
|
214
|
+
*
|
|
215
|
+
* ```js
|
|
216
|
+
* {
|
|
217
|
+
* build: {
|
|
218
|
+
* command: "npm run build",
|
|
219
|
+
* output: "dist"
|
|
220
|
+
* }
|
|
221
|
+
* }
|
|
222
|
+
* ```
|
|
223
|
+
*/
|
|
224
|
+
build?: BaseStaticSiteArgs["build"];
|
|
225
|
+
/**
|
|
226
|
+
* Configure how the static site's assets are uploaded to S3.
|
|
227
|
+
*
|
|
228
|
+
* By default, this is set to the following. Read more about these options below.
|
|
229
|
+
* ```js
|
|
230
|
+
* {
|
|
231
|
+
* assets: {
|
|
232
|
+
* textEncoding: "utf-8",
|
|
233
|
+
* fileOptions: [
|
|
234
|
+
* {
|
|
235
|
+
* files: "**",
|
|
236
|
+
* cacheControl: "max-age=31536000,public,immutable"
|
|
237
|
+
* },
|
|
238
|
+
* {
|
|
239
|
+
* files: "**\/*.html",
|
|
240
|
+
* cacheControl: "max-age=0,no-cache,no-store,must-revalidate"
|
|
241
|
+
* }
|
|
242
|
+
* ]
|
|
243
|
+
* }
|
|
244
|
+
* }
|
|
245
|
+
* ```
|
|
246
|
+
* @default `Object`
|
|
247
|
+
*/
|
|
248
|
+
assets?: Prettify<BaseStaticSiteAssets & {
|
|
249
|
+
/**
|
|
250
|
+
* The name of the S3 bucket to upload the assets to.
|
|
251
|
+
* @default Creates a new bucket
|
|
252
|
+
* @example
|
|
253
|
+
* ```js
|
|
254
|
+
* {
|
|
255
|
+
* assets: {
|
|
256
|
+
* bucket: "my-existing-bucket"
|
|
257
|
+
* }
|
|
258
|
+
* }
|
|
259
|
+
* ```
|
|
260
|
+
*
|
|
261
|
+
* :::note
|
|
262
|
+
* The bucket must allow CloudFront to access the bucket.
|
|
263
|
+
* :::
|
|
264
|
+
*
|
|
265
|
+
* When using an existing bucket, ensure that the bucket has a policy that allows CloudFront to access the bucket.
|
|
266
|
+
* For example, the bucket policy might look like this:
|
|
267
|
+
* ```json
|
|
268
|
+
* {
|
|
269
|
+
* "Version": "2012-10-17",
|
|
270
|
+
* "Statement": [
|
|
271
|
+
* {
|
|
272
|
+
* "Effect": "Allow",
|
|
273
|
+
* "Principal": {
|
|
274
|
+
* "Service": "cloudfront.amazonaws.com"
|
|
275
|
+
* },
|
|
276
|
+
* "Action": "s3:GetObject",
|
|
277
|
+
* "Resource": "arn:aws:s3:::my-existing-bucket/*"
|
|
278
|
+
* }
|
|
279
|
+
* ]
|
|
280
|
+
* }
|
|
281
|
+
* ```
|
|
282
|
+
*/
|
|
283
|
+
bucket?: Input<string>;
|
|
284
|
+
/**
|
|
285
|
+
* The path into the S3 bucket where the assets should be uploaded.
|
|
286
|
+
* @default Root of the bucket
|
|
287
|
+
* @example
|
|
288
|
+
* ```js
|
|
289
|
+
* {
|
|
290
|
+
* assets: {
|
|
291
|
+
* path: "websites/my-website"
|
|
292
|
+
* }
|
|
293
|
+
* }
|
|
294
|
+
* ```
|
|
295
|
+
*/
|
|
296
|
+
path?: Input<string>;
|
|
297
|
+
/**
|
|
298
|
+
* Configure if files from previous deployments should be purged from the bucket.
|
|
299
|
+
* @default `true`
|
|
300
|
+
* @example
|
|
301
|
+
* ```js
|
|
302
|
+
* {
|
|
303
|
+
* assets: {
|
|
304
|
+
* purge: false
|
|
305
|
+
* }
|
|
306
|
+
* }
|
|
307
|
+
* ```
|
|
308
|
+
*/
|
|
309
|
+
purge?: Input<boolean>;
|
|
310
|
+
/**
|
|
311
|
+
* Configure additional asset routes for serving files directly from the S3 bucket.
|
|
312
|
+
*
|
|
313
|
+
* These routes allow files stored in specific S3 bucket paths to be served under the
|
|
314
|
+
* same domain as your site. This is particularly useful for handling user-uploaded
|
|
315
|
+
* content.
|
|
316
|
+
*
|
|
317
|
+
* @example
|
|
318
|
+
* If user-uploaded files are stored in the `uploads` directory, and no `routes` are
|
|
319
|
+
* configured, these files will return 404 errors or display the `errorPage` if set.
|
|
320
|
+
* By including `uploads` in `routes`, all files in that folder will be served
|
|
321
|
+
* directly from the S3 bucket.
|
|
322
|
+
*
|
|
323
|
+
* ```js
|
|
324
|
+
* {
|
|
325
|
+
* assets: {
|
|
326
|
+
* routes: ["uploads"]
|
|
327
|
+
* }
|
|
328
|
+
* }
|
|
329
|
+
* ```
|
|
330
|
+
*/
|
|
331
|
+
routes?: Input<Input<string>[]>;
|
|
332
|
+
}>;
|
|
333
|
+
/**
|
|
334
|
+
* Set a custom domain for your static site. Supports domains hosted either on
|
|
335
|
+
* [Route 53](https://aws.amazon.com/route53/) or outside AWS.
|
|
336
|
+
*
|
|
337
|
+
* :::tip
|
|
338
|
+
* You can also migrate an externally hosted domain to Amazon Route 53 by
|
|
339
|
+
* [following this guide](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/MigratingDNS.html).
|
|
340
|
+
* :::
|
|
341
|
+
*
|
|
342
|
+
* @example
|
|
343
|
+
*
|
|
344
|
+
* ```js
|
|
345
|
+
* {
|
|
346
|
+
* domain: "domain.com"
|
|
347
|
+
* }
|
|
348
|
+
* ```
|
|
349
|
+
*
|
|
350
|
+
* Specify a `www.` version of the custom domain.
|
|
351
|
+
*
|
|
352
|
+
* ```js
|
|
353
|
+
* {
|
|
354
|
+
* domain: {
|
|
355
|
+
* name: "domain.com",
|
|
356
|
+
* redirects: ["www.domain.com"]
|
|
357
|
+
* }
|
|
358
|
+
* }
|
|
359
|
+
* ```
|
|
360
|
+
*/
|
|
361
|
+
domain?: CdnArgs["domain"];
|
|
362
|
+
/**
|
|
363
|
+
* @deprecated The `router` prop is now the recommended way to serve your site
|
|
364
|
+
* through a `Router` component.
|
|
365
|
+
*/
|
|
366
|
+
route?: Prettify<RouterRouteArgsDeprecated>;
|
|
367
|
+
/**
|
|
368
|
+
* Serve your static site through a `Router` instead of a standalone CloudFront
|
|
369
|
+
* distribution.
|
|
370
|
+
*
|
|
371
|
+
* By default, this component creates a new CloudFront distribution. But you might
|
|
372
|
+
* want to serve it through the distribution of your `Router` as a:
|
|
373
|
+
*
|
|
374
|
+
* - A path like `/docs`
|
|
375
|
+
* - A subdomain like `docs.example.com`
|
|
376
|
+
* - Or a combined pattern like `dev.example.com/docs`
|
|
377
|
+
*
|
|
378
|
+
* @example
|
|
379
|
+
*
|
|
380
|
+
* To serve your static site **from a path**, you'll need to configure the root domain
|
|
381
|
+
* in your `Router` component.
|
|
382
|
+
*
|
|
383
|
+
* ```ts title="sst.config.ts" {2}
|
|
384
|
+
* const router = new sst.aws.Router("Router", {
|
|
385
|
+
* domain: "example.com"
|
|
386
|
+
* });
|
|
387
|
+
* ```
|
|
388
|
+
*
|
|
389
|
+
* Now set the `router` and the `path`.
|
|
390
|
+
*
|
|
391
|
+
* ```ts {3,4}
|
|
392
|
+
* {
|
|
393
|
+
* router: {
|
|
394
|
+
* instance: router,
|
|
395
|
+
* path: "/docs"
|
|
396
|
+
* }
|
|
397
|
+
* }
|
|
398
|
+
* ```
|
|
399
|
+
*
|
|
400
|
+
* If you are using a static site generator make sure the base path is set in your
|
|
401
|
+
* config.
|
|
402
|
+
*
|
|
403
|
+
* :::caution
|
|
404
|
+
* If routing to a path, you need to configure that as the base path in your
|
|
405
|
+
* static site generator as well.
|
|
406
|
+
* :::
|
|
407
|
+
*
|
|
408
|
+
* For Vite, set the `base` option in your `vite.config.ts`. It should end with
|
|
409
|
+
* a `/` to ensure asset paths like CSS and JS, are constructed correctly.
|
|
410
|
+
*
|
|
411
|
+
* ```js title="vite.config.ts" {2}
|
|
412
|
+
* export default defineConfig({
|
|
413
|
+
* base: "/docs/"
|
|
414
|
+
* });
|
|
415
|
+
* ```
|
|
416
|
+
*
|
|
417
|
+
* To serve your static site **from a subdomain**, you'll need to configure the
|
|
418
|
+
* domain in your `Router` component to match both the root and the subdomain.
|
|
419
|
+
*
|
|
420
|
+
* ```ts title="sst.config.ts" {3,4}
|
|
421
|
+
* const router = new sst.aws.Router("Router", {
|
|
422
|
+
* domain: {
|
|
423
|
+
* name: "example.com",
|
|
424
|
+
* aliases: ["*.example.com"]
|
|
425
|
+
* }
|
|
426
|
+
* });
|
|
427
|
+
* ```
|
|
428
|
+
*
|
|
429
|
+
* Now set the `domain` in the `router` prop.
|
|
430
|
+
*
|
|
431
|
+
* ```ts {4}
|
|
432
|
+
* {
|
|
433
|
+
* router: {
|
|
434
|
+
* instance: router,
|
|
435
|
+
* domain: "docs.example.com"
|
|
436
|
+
* }
|
|
437
|
+
* }
|
|
438
|
+
* ```
|
|
439
|
+
*
|
|
440
|
+
* Finally, to serve your static site **from a combined pattern** like
|
|
441
|
+
* `dev.example.com/docs`, you'll need to configure the domain in your `Router` to
|
|
442
|
+
* match the subdomain.
|
|
443
|
+
*
|
|
444
|
+
* ```ts title="sst.config.ts" {3,4}
|
|
445
|
+
* const router = new sst.aws.Router("Router", {
|
|
446
|
+
* domain: {
|
|
447
|
+
* name: "example.com",
|
|
448
|
+
* aliases: ["*.example.com"]
|
|
449
|
+
* }
|
|
450
|
+
* });
|
|
451
|
+
* ```
|
|
452
|
+
*
|
|
453
|
+
* And set the `domain` and the `path`.
|
|
454
|
+
*
|
|
455
|
+
* ```ts {4,5}
|
|
456
|
+
* {
|
|
457
|
+
* router: {
|
|
458
|
+
* instance: router,
|
|
459
|
+
* domain: "dev.example.com",
|
|
460
|
+
* path: "/docs"
|
|
461
|
+
* }
|
|
462
|
+
* }
|
|
463
|
+
* ```
|
|
464
|
+
*
|
|
465
|
+
* Also, make sure to set the base path in your static site generator
|
|
466
|
+
* configuration, like above.
|
|
467
|
+
*/
|
|
468
|
+
router?: Prettify<RouterRouteArgs>;
|
|
469
|
+
/**
|
|
470
|
+
* Configure how the CloudFront cache invalidations are handled. This is run after your static site has been deployed.
|
|
471
|
+
* :::tip
|
|
472
|
+
* You get 1000 free invalidations per month. After that you pay $0.005 per invalidation path. [Read more here](https://aws.amazon.com/cloudfront/pricing/).
|
|
473
|
+
* :::
|
|
474
|
+
* @default `{paths: "all", wait: false}`
|
|
475
|
+
* @example
|
|
476
|
+
* Turn off invalidations.
|
|
477
|
+
* ```js
|
|
478
|
+
* {
|
|
479
|
+
* invalidation: false
|
|
480
|
+
* }
|
|
481
|
+
* ```
|
|
482
|
+
* Wait for all paths to be invalidated.
|
|
483
|
+
* ```js
|
|
484
|
+
* {
|
|
485
|
+
* invalidation: {
|
|
486
|
+
* paths: "all",
|
|
487
|
+
* wait: true
|
|
488
|
+
* }
|
|
489
|
+
* }
|
|
490
|
+
* ```
|
|
491
|
+
*/
|
|
492
|
+
invalidation?: Input<false | {
|
|
493
|
+
/**
|
|
494
|
+
* Configure if `sst deploy` should wait for the CloudFront cache invalidation to finish.
|
|
495
|
+
*
|
|
496
|
+
* :::tip
|
|
497
|
+
* For non-prod environments it might make sense to pass in `false`.
|
|
498
|
+
* :::
|
|
499
|
+
*
|
|
500
|
+
* Waiting for the CloudFront cache invalidation process to finish ensures that the new content will be served once the deploy finishes. However, this process can sometimes take more than 5 mins.
|
|
501
|
+
* @default `false`
|
|
502
|
+
* @example
|
|
503
|
+
* ```js
|
|
504
|
+
* {
|
|
505
|
+
* invalidation: {
|
|
506
|
+
* wait: true
|
|
507
|
+
* }
|
|
508
|
+
* }
|
|
509
|
+
* ```
|
|
510
|
+
*/
|
|
511
|
+
wait?: Input<boolean>;
|
|
512
|
+
/**
|
|
513
|
+
* The paths to invalidate.
|
|
514
|
+
*
|
|
515
|
+
* You can either pass in an array of glob patterns to invalidate specific files. Or you can use the built-in option `all` to invalidation all files when any file changes.
|
|
516
|
+
*
|
|
517
|
+
* :::note
|
|
518
|
+
* Invalidating `all` counts as one invalidation, while each glob pattern counts as a single invalidation path.
|
|
519
|
+
* :::
|
|
520
|
+
* @default `"all"`
|
|
521
|
+
* @example
|
|
522
|
+
* Invalidate the `index.html` and all files under the `products/` route.
|
|
523
|
+
* ```js
|
|
524
|
+
* {
|
|
525
|
+
* invalidation: {
|
|
526
|
+
* paths: ["/index.html", "/products/*"]
|
|
527
|
+
* }
|
|
528
|
+
* }
|
|
529
|
+
* ```
|
|
530
|
+
*/
|
|
531
|
+
paths?: Input<"all" | string[]>;
|
|
532
|
+
}>;
|
|
533
|
+
/**
|
|
534
|
+
* @deprecated The `route.path` prop is now the recommended way to configure the base
|
|
535
|
+
* path for the site.
|
|
536
|
+
*/
|
|
537
|
+
base?: Input<string>;
|
|
538
|
+
/**
|
|
539
|
+
* @deprecated The `route` prop is now the recommended way to use the `Router` component
|
|
540
|
+
* to serve your site. Setting `route` will not create a standalone CloudFront
|
|
541
|
+
* distribution.
|
|
542
|
+
*/
|
|
543
|
+
cdn?: Input<boolean>;
|
|
544
|
+
/**
|
|
545
|
+
* [Transform](/docs/components#transform) how this component creates its underlying
|
|
546
|
+
* resources.
|
|
547
|
+
*/
|
|
548
|
+
transform?: {
|
|
549
|
+
/**
|
|
550
|
+
* Transform the Bucket resource used for uploading the assets.
|
|
551
|
+
*/
|
|
552
|
+
assets?: Transform<BucketArgs>;
|
|
553
|
+
/**
|
|
554
|
+
* Transform the CloudFront CDN resource.
|
|
555
|
+
*/
|
|
556
|
+
cdn?: Transform<CdnArgs>;
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* The `StaticSite` component lets you deploy a static website to AWS. It uses [Amazon S3](https://aws.amazon.com/s3/) to store your files and [Amazon CloudFront](https://aws.amazon.com/cloudfront/) to serve them.
|
|
561
|
+
*
|
|
562
|
+
* It can also `build` your site by running your static site generator, like [Vite](https://vitejs.dev) and uploading the build output to S3.
|
|
563
|
+
*
|
|
564
|
+
* @example
|
|
565
|
+
*
|
|
566
|
+
* #### Minimal example
|
|
567
|
+
*
|
|
568
|
+
* Simply uploads the current directory as a static site.
|
|
569
|
+
*
|
|
570
|
+
* ```js title="sst.config.ts"
|
|
571
|
+
* new sst.aws.StaticSite("MyWeb");
|
|
572
|
+
* ```
|
|
573
|
+
*
|
|
574
|
+
* #### Change the path
|
|
575
|
+
*
|
|
576
|
+
* Change the `path` that should be uploaded.
|
|
577
|
+
*
|
|
578
|
+
* ```js title="sst.config.ts"
|
|
579
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
580
|
+
* path: "path/to/site"
|
|
581
|
+
* });
|
|
582
|
+
* ```
|
|
583
|
+
*
|
|
584
|
+
* #### Running locally
|
|
585
|
+
*
|
|
586
|
+
* In `sst dev`, we don't deploy your site to AWS because we assume you are running it locally.
|
|
587
|
+
*
|
|
588
|
+
* :::note
|
|
589
|
+
* Your static site will not be deployed when run locally with `sst dev`.
|
|
590
|
+
* :::
|
|
591
|
+
*
|
|
592
|
+
* For example, for a Vite site, you can run it locally with.
|
|
593
|
+
*
|
|
594
|
+
* ```bash
|
|
595
|
+
* sst dev vite dev
|
|
596
|
+
* ```
|
|
597
|
+
*
|
|
598
|
+
* This will start the Vite dev server and pass in any environment variables that you've set in your config. But it will not deploy your site to AWS.
|
|
599
|
+
*
|
|
600
|
+
* #### Deploy a Vite SPA
|
|
601
|
+
*
|
|
602
|
+
* Use [Vite](https://vitejs.dev) to deploy a React/Vue/Svelte/etc. SPA by specifying the `build` config.
|
|
603
|
+
*
|
|
604
|
+
* ```js title="sst.config.ts"
|
|
605
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
606
|
+
* build: {
|
|
607
|
+
* command: "npm run build",
|
|
608
|
+
* output: "dist"
|
|
609
|
+
* }
|
|
610
|
+
* });
|
|
611
|
+
* ```
|
|
612
|
+
*
|
|
613
|
+
* #### Deploy a Jekyll site
|
|
614
|
+
*
|
|
615
|
+
* Use [Jekyll](https://jekyllrb.com) to deploy a static site.
|
|
616
|
+
*
|
|
617
|
+
* ```js title="sst.config.ts"
|
|
618
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
619
|
+
* errorPage: "/404.html",
|
|
620
|
+
* build: {
|
|
621
|
+
* command: "bundle exec jekyll build",
|
|
622
|
+
* output: "_site"
|
|
623
|
+
* }
|
|
624
|
+
* });
|
|
625
|
+
* ```
|
|
626
|
+
*
|
|
627
|
+
* #### Deploy a Gatsby site
|
|
628
|
+
*
|
|
629
|
+
* Use [Gatsby](https://www.gatsbyjs.com) to deploy a static site.
|
|
630
|
+
*
|
|
631
|
+
* ```js title="sst.config.ts"
|
|
632
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
633
|
+
* errorPage: "/404.html",
|
|
634
|
+
* build: {
|
|
635
|
+
* command: "npm run build",
|
|
636
|
+
* output: "public"
|
|
637
|
+
* }
|
|
638
|
+
* });
|
|
639
|
+
* ```
|
|
640
|
+
*
|
|
641
|
+
* #### Deploy an Angular SPA
|
|
642
|
+
*
|
|
643
|
+
* Use [Angular](https://angular.dev) to deploy a SPA.
|
|
644
|
+
*
|
|
645
|
+
* ```js title="sst.config.ts"
|
|
646
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
647
|
+
* build: {
|
|
648
|
+
* command: "ng build --output-path dist",
|
|
649
|
+
* output: "dist"
|
|
650
|
+
* }
|
|
651
|
+
* });
|
|
652
|
+
* ```
|
|
653
|
+
*
|
|
654
|
+
* #### Add a custom domain
|
|
655
|
+
*
|
|
656
|
+
* Set a custom domain for your site.
|
|
657
|
+
*
|
|
658
|
+
* ```js {2} title="sst.config.ts"
|
|
659
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
660
|
+
* domain: "my-app.com"
|
|
661
|
+
* });
|
|
662
|
+
* ```
|
|
663
|
+
*
|
|
664
|
+
* #### Redirect www to apex domain
|
|
665
|
+
*
|
|
666
|
+
* Redirect `www.my-app.com` to `my-app.com`.
|
|
667
|
+
*
|
|
668
|
+
* ```js {4} title="sst.config.ts"
|
|
669
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
670
|
+
* domain: {
|
|
671
|
+
* name: "my-app.com",
|
|
672
|
+
* redirects: ["www.my-app.com"]
|
|
673
|
+
* }
|
|
674
|
+
* });
|
|
675
|
+
* ```
|
|
676
|
+
*
|
|
677
|
+
* #### Set environment variables
|
|
678
|
+
*
|
|
679
|
+
* Set `environment` variables for the build process of your static site. These will be used locally and on deploy.
|
|
680
|
+
*
|
|
681
|
+
* :::tip
|
|
682
|
+
* For Vite, the types for the environment variables are also generated. This can be configured through the `vite` prop.
|
|
683
|
+
* :::
|
|
684
|
+
*
|
|
685
|
+
* For some static site generators like Vite, [environment variables](https://vitejs.dev/guide/env-and-mode) prefixed with `VITE_` can be accessed in the browser.
|
|
686
|
+
*
|
|
687
|
+
* ```ts {5-7} title="sst.config.ts"
|
|
688
|
+
* const bucket = new sst.aws.Bucket("MyBucket");
|
|
689
|
+
*
|
|
690
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
691
|
+
* environment: {
|
|
692
|
+
* BUCKET_NAME: bucket.name,
|
|
693
|
+
* // Accessible in the browser
|
|
694
|
+
* VITE_STRIPE_PUBLISHABLE_KEY: "pk_test_123"
|
|
695
|
+
* },
|
|
696
|
+
* build: {
|
|
697
|
+
* command: "npm run build",
|
|
698
|
+
* output: "dist"
|
|
699
|
+
* }
|
|
700
|
+
* });
|
|
701
|
+
* ```
|
|
702
|
+
*/
|
|
703
|
+
export declare class StaticSite extends Component implements Link.Linkable {
|
|
704
|
+
private cdn?;
|
|
705
|
+
private bucket?;
|
|
706
|
+
private devUrl?;
|
|
707
|
+
private prodUrl?;
|
|
708
|
+
constructor(name: string, args?: StaticSiteArgs, opts?: ComponentResourceOptions);
|
|
709
|
+
/**
|
|
710
|
+
* The URL of the website.
|
|
711
|
+
*
|
|
712
|
+
* If the `domain` is set, this is the URL with the custom domain.
|
|
713
|
+
* Otherwise, it's the auto-generated CloudFront URL.
|
|
714
|
+
*/
|
|
715
|
+
get url(): Output<string>;
|
|
716
|
+
/**
|
|
717
|
+
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
718
|
+
*/
|
|
719
|
+
get nodes(): {
|
|
720
|
+
/**
|
|
721
|
+
* The Amazon S3 Bucket that stores the assets.
|
|
722
|
+
*/
|
|
723
|
+
assets: Bucket | undefined;
|
|
724
|
+
/**
|
|
725
|
+
* The Amazon CloudFront CDN that serves the site.
|
|
726
|
+
*/
|
|
727
|
+
cdn: Cdn | undefined;
|
|
728
|
+
};
|
|
729
|
+
/** @internal */
|
|
730
|
+
getSSTLink(): {
|
|
731
|
+
properties: {
|
|
732
|
+
url: Output<string>;
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
//# sourceMappingURL=static-site.d.ts.map
|