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,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Cloudflare DNS Adapter is used to create DNS records to manage domains hosted on
|
|
3
|
+
* [Cloudflare DNS](https://developers.cloudflare.com/dns/).
|
|
4
|
+
*
|
|
5
|
+
* :::note
|
|
6
|
+
* You need to [add the Cloudflare provider](/docs/providers/#install) to use this adapter.
|
|
7
|
+
* :::
|
|
8
|
+
*
|
|
9
|
+
* This needs the Cloudflare provider. To add it run:
|
|
10
|
+
*
|
|
11
|
+
* ```bash
|
|
12
|
+
* sst add cloudflare
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* This adapter is passed in as `domain.dns` when setting a custom domain, where `example.com`
|
|
16
|
+
* is hosted on Cloudflare.
|
|
17
|
+
*
|
|
18
|
+
* ```ts
|
|
19
|
+
* {
|
|
20
|
+
* domain: {
|
|
21
|
+
* name: "example.com",
|
|
22
|
+
* dns: sst.cloudflare.dns()
|
|
23
|
+
* }
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* Specify the zone ID.
|
|
28
|
+
*
|
|
29
|
+
* ```ts
|
|
30
|
+
* {
|
|
31
|
+
* domain: {
|
|
32
|
+
* name: "example.com",
|
|
33
|
+
* dns: sst.cloudflare.dns({
|
|
34
|
+
* zone: "415e6f4653b6d95b775d350f32119abb"
|
|
35
|
+
* })
|
|
36
|
+
* }
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @packageDocumentation
|
|
41
|
+
*/
|
|
42
|
+
import * as cloudflare from "@pulumi/cloudflare";
|
|
43
|
+
import { AliasRecord, Record } from "../dns";
|
|
44
|
+
import { ComponentResourceOptions } from "@pulumi/pulumi";
|
|
45
|
+
import { Transform } from "../component";
|
|
46
|
+
import { Input } from "../input";
|
|
47
|
+
import { DnsRecord as OverridableDnsRecord } from "./providers/dns-record";
|
|
48
|
+
export interface DnsArgs {
|
|
49
|
+
/**
|
|
50
|
+
* The ID of the Cloudflare zone to create the record in.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```js
|
|
54
|
+
* {
|
|
55
|
+
* zone: "415e6f4653b6d95b775d350f32119abb"
|
|
56
|
+
* }
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
zone?: Input<string>;
|
|
60
|
+
/**
|
|
61
|
+
* Configure ALIAS DNS records as [proxy records](https://developers.cloudflare.com/learning-paths/get-started-free/onboarding/proxy-dns-records/).
|
|
62
|
+
*
|
|
63
|
+
* :::tip
|
|
64
|
+
* Proxied records help prevent DDoS attacks and allow you to use Cloudflare's global
|
|
65
|
+
* content delivery network (CDN) for caching.
|
|
66
|
+
* :::
|
|
67
|
+
*
|
|
68
|
+
* @default `false`
|
|
69
|
+
* @example
|
|
70
|
+
* ```js
|
|
71
|
+
* {
|
|
72
|
+
* proxy: true
|
|
73
|
+
* }
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
proxy?: Input<boolean>;
|
|
77
|
+
/**
|
|
78
|
+
* [Transform](/docs/components#transform) how this component creates its underlying
|
|
79
|
+
* resources.
|
|
80
|
+
*/
|
|
81
|
+
transform?: {
|
|
82
|
+
/**
|
|
83
|
+
* Transform the Cloudflare record resource.
|
|
84
|
+
*/
|
|
85
|
+
record?: Transform<cloudflare.RecordArgs>;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export declare function dns(args?: DnsArgs): {
|
|
89
|
+
provider: "cloudflare";
|
|
90
|
+
createAlias: (namePrefix: string, record: AliasRecord, opts: ComponentResourceOptions) => $util.Output<import("@pulumi/cloudflare/dnsRecord").DnsRecord>;
|
|
91
|
+
createCaa: (namePrefix: string, recordName: string, opts: ComponentResourceOptions) => OverridableDnsRecord[];
|
|
92
|
+
createRecord: (namePrefix: string, record: Record, opts: ComponentResourceOptions) => $util.Output<import("@pulumi/cloudflare/dnsRecord").DnsRecord>;
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=dns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dns.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/dns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAO,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGlD,OAAO,EAAE,wBAAwB,EAAU,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,SAAS,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE3E,MAAM,WAAW,OAAO;IACtB;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,MAAM,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;KAC3C,CAAC;CACH;AAED,wBAAgB,GAAG,CAAC,IAAI,GAAE,OAAY;;8BAwCtB,MAAM,UACV,WAAW,QACb,wBAAwB;4BAelB,MAAM,cACN,MAAM,QACZ,wBAAwB;+BA6ClB,MAAM,UACV,MAAM,QACR,wBAAwB;EA0CjC"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { ComponentResourceOptions, Output } from "@pulumi/pulumi";
|
|
2
|
+
import { Plan, SsrSite, SsrSiteArgs } from "../ssr-site.js";
|
|
3
|
+
export interface AstroArgs extends SsrSiteArgs {
|
|
4
|
+
/**
|
|
5
|
+
* Configure how this component works in `sst dev`.
|
|
6
|
+
*
|
|
7
|
+
* :::note
|
|
8
|
+
* In `sst dev` your Astro site is run in dev mode; it's not deployed.
|
|
9
|
+
* :::
|
|
10
|
+
*
|
|
11
|
+
* Instead of deploying your Astro site, this starts it in dev mode. It's run
|
|
12
|
+
* as a separate process in the `sst dev` multiplexer. Read more about
|
|
13
|
+
* [`sst dev`](/docs/reference/cli/#dev).
|
|
14
|
+
*
|
|
15
|
+
* To disable dev mode, pass in `false`.
|
|
16
|
+
*/
|
|
17
|
+
dev?: SsrSiteArgs["dev"];
|
|
18
|
+
/**
|
|
19
|
+
* Path to the directory where your Astro site is located. This path is relative to your `sst.config.ts`.
|
|
20
|
+
*
|
|
21
|
+
* By default it assumes your Astro site is in the root of your SST app.
|
|
22
|
+
* @default `"."`
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
*
|
|
26
|
+
* If your Astro site is in a package in your monorepo.
|
|
27
|
+
*
|
|
28
|
+
* ```js
|
|
29
|
+
* {
|
|
30
|
+
* path: "packages/web"
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
path?: SsrSiteArgs["path"];
|
|
35
|
+
/**
|
|
36
|
+
* [Link resources](/docs/linking/) to your Astro site. This will:
|
|
37
|
+
*
|
|
38
|
+
* 1. Grant the permissions needed to access the resources.
|
|
39
|
+
* 2. Allow you to access it in your site using [`Astro.locals.runtime`](https://docs.astro.build/en/guides/integrations-guide/cloudflare/#environment-variables-and-secrets).
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
*
|
|
43
|
+
* Takes a list of resources to link to the function.
|
|
44
|
+
*
|
|
45
|
+
* ```js
|
|
46
|
+
* {
|
|
47
|
+
* link: [bucket, stripeKey]
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* You can access the linked resources as bindings in your Astro site.
|
|
52
|
+
*
|
|
53
|
+
* ```js
|
|
54
|
+
* const { env } = Astro.locals.runtime;
|
|
55
|
+
* const files = await env.MyBucket.list();
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
link?: SsrSiteArgs["link"];
|
|
59
|
+
/**
|
|
60
|
+
* Set [environment variables](https://docs.astro.build/en/guides/environment-variables/) in your Astro site. These are made available:
|
|
61
|
+
*
|
|
62
|
+
* 1. In `astro build`, they are loaded into [`Astro.locals.runtime`](https://docs.astro.build/en/guides/integrations-guide/cloudflare/#environment-variables-and-secrets).
|
|
63
|
+
* 2. Locally while running `astro dev` through `sst dev`.
|
|
64
|
+
*
|
|
65
|
+
* :::tip
|
|
66
|
+
* You can also `link` resources to your Astro site and access them in a type-safe way with the [SDK](/docs/reference/sdk/). We recommend linking since it's more secure.
|
|
67
|
+
* :::
|
|
68
|
+
*
|
|
69
|
+
* Recall that in Astro, you need to prefix your environment variables with `PUBLIC_` to access them on the client-side. [Read more here](https://docs.astro.build/en/guides/environment-variables/).
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```js
|
|
73
|
+
* {
|
|
74
|
+
* environment: {
|
|
75
|
+
* API_URL: api.url,
|
|
76
|
+
* // Accessible on the client-side
|
|
77
|
+
* PUBLIC_STRIPE_PUBLISHABLE_KEY: "pk_test_123"
|
|
78
|
+
* }
|
|
79
|
+
* }
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* You can access the environment variables in your Astro site as follows:
|
|
83
|
+
*
|
|
84
|
+
* ```js
|
|
85
|
+
* const { env } = Astro.locals.runtime;
|
|
86
|
+
* const apiUrl = env.API_URL;
|
|
87
|
+
* const stripeKey = env.PUBLIC_STRIPE_PUBLISHABLE_KEY;
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
environment?: SsrSiteArgs["environment"];
|
|
91
|
+
/**
|
|
92
|
+
* Set a custom domain for your Astro site.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
*
|
|
96
|
+
* ```js
|
|
97
|
+
* {
|
|
98
|
+
* domain: "my-app.com"
|
|
99
|
+
* }
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
domain?: SsrSiteArgs["domain"];
|
|
103
|
+
/**
|
|
104
|
+
* The command used internally to build your Astro site.
|
|
105
|
+
*
|
|
106
|
+
* @default `"npm run build"`
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
*
|
|
110
|
+
* If you want to use a different build command.
|
|
111
|
+
* ```js
|
|
112
|
+
* {
|
|
113
|
+
* buildCommand: "yarn build"
|
|
114
|
+
* }
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
buildCommand?: SsrSiteArgs["buildCommand"];
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* The `Astro` component lets you deploy an [Astro](https://astro.build) site to Cloudflare.
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
*
|
|
124
|
+
* #### Minimal example
|
|
125
|
+
*
|
|
126
|
+
* Deploy the Astro site that's in the project root.
|
|
127
|
+
*
|
|
128
|
+
* ```js title="sst.config.ts"
|
|
129
|
+
* new sst.cloudflare.Astro("MyWeb");
|
|
130
|
+
* ```
|
|
131
|
+
*
|
|
132
|
+
* #### Change the path
|
|
133
|
+
*
|
|
134
|
+
* Deploys the Astro site in the `my-astro-app/` directory.
|
|
135
|
+
*
|
|
136
|
+
* ```js {2} title="sst.config.ts"
|
|
137
|
+
* new sst.cloudflare.Astro("MyWeb", {
|
|
138
|
+
* path: "my-astro-app/"
|
|
139
|
+
* });
|
|
140
|
+
* ```
|
|
141
|
+
*
|
|
142
|
+
* #### Add a custom domain
|
|
143
|
+
*
|
|
144
|
+
* Set a custom domain for your Astro site.
|
|
145
|
+
*
|
|
146
|
+
* ```js {2} title="sst.config.ts"
|
|
147
|
+
* new sst.cloudflare.Astro("MyWeb", {
|
|
148
|
+
* domain: "my-app.com"
|
|
149
|
+
* });
|
|
150
|
+
* ```
|
|
151
|
+
*
|
|
152
|
+
* #### Link resources
|
|
153
|
+
*
|
|
154
|
+
* [Link resources](/docs/linking/) to your Astro site. This will grant permissions
|
|
155
|
+
* to the resources and allow you to access it in your site.
|
|
156
|
+
*
|
|
157
|
+
* ```ts {4} title="sst.config.ts"
|
|
158
|
+
* const bucket = new sst.cloudflare.Bucket("MyBucket");
|
|
159
|
+
*
|
|
160
|
+
* new sst.cloudflare.Astro("MyWeb", {
|
|
161
|
+
* link: [bucket]
|
|
162
|
+
* });
|
|
163
|
+
* ```
|
|
164
|
+
*
|
|
165
|
+
* You can access the linked resources as bindings in your Astro site.
|
|
166
|
+
*
|
|
167
|
+
* ```astro title="src/pages/index.astro"
|
|
168
|
+
* ---
|
|
169
|
+
* const { env } = Astro.locals.runtime;
|
|
170
|
+
*
|
|
171
|
+
* const files = await env.MyBucket.list();
|
|
172
|
+
* ---
|
|
173
|
+
* ```
|
|
174
|
+
*/
|
|
175
|
+
export declare class Astro extends SsrSite {
|
|
176
|
+
constructor(name: string, args?: AstroArgs, opts?: ComponentResourceOptions);
|
|
177
|
+
protected buildPlan(outputPath: Output<string>): Output<Plan>;
|
|
178
|
+
/**
|
|
179
|
+
* The URL of the Astro site.
|
|
180
|
+
*
|
|
181
|
+
* If the `domain` is set, this is the URL with the custom domain.
|
|
182
|
+
* Otherwise, it's the auto-generated Worker URL.
|
|
183
|
+
*/
|
|
184
|
+
get url(): Output<string | undefined>;
|
|
185
|
+
}
|
|
186
|
+
//# sourceMappingURL=astro.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"astro.d.ts","sourceRoot":"","sources":["../../../../../../../.sst/platform/src/components/cloudflare/experimental/astro.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAElE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG5D,MAAM,WAAW,SAAU,SAAQ,WAAW;IAC5C;;;;;;;;;;;;OAYG;IACH,GAAG,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IACzB;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;IACzC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC/B;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;CAC5C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,qBAAa,KAAM,SAAQ,OAAO;gBAE9B,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,SAAc,EACpB,IAAI,GAAE,wBAA6B;IAKrC,SAAS,CAAC,SAAS,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC;IAkC7D;;;;;OAKG;IACH,IAAW,GAAG,+BAEb;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../.sst/platform/src/components/cloudflare/experimental/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { ComponentResourceOptions, Output } from "@pulumi/pulumi";
|
|
2
|
+
import { Plan, SsrSite, SsrSiteArgs } from "../ssr-site.js";
|
|
3
|
+
export interface SolidStartArgs extends SsrSiteArgs {
|
|
4
|
+
/**
|
|
5
|
+
* Configure how this component works in `sst dev`.
|
|
6
|
+
*
|
|
7
|
+
* :::note
|
|
8
|
+
* In `sst dev` your SolidStart app is run in dev mode; it's not deployed.
|
|
9
|
+
* :::
|
|
10
|
+
*
|
|
11
|
+
* Instead of deploying your SolidStart app, this starts it in dev mode. It's run
|
|
12
|
+
* as a separate process in the `sst dev` multiplexer. Read more about
|
|
13
|
+
* [`sst dev`](/docs/reference/cli/#dev).
|
|
14
|
+
*
|
|
15
|
+
* To disable dev mode, pass in `false`.
|
|
16
|
+
*/
|
|
17
|
+
dev?: SsrSiteArgs["dev"];
|
|
18
|
+
/**
|
|
19
|
+
* Path to the directory where your SolidStart app is located. This path is relative to your `sst.config.ts`.
|
|
20
|
+
*
|
|
21
|
+
* By default it assumes your SolidStart app is in the root of your SST app.
|
|
22
|
+
* @default `"."`
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
*
|
|
26
|
+
* If your SolidStart app is in a package in your monorepo.
|
|
27
|
+
*
|
|
28
|
+
* ```js
|
|
29
|
+
* {
|
|
30
|
+
* path: "packages/web"
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
path?: SsrSiteArgs["path"];
|
|
35
|
+
/**
|
|
36
|
+
* [Link resources](/docs/linking/) to your SolidStart app. This will:
|
|
37
|
+
*
|
|
38
|
+
* 1. Grant the permissions needed to access the resources.
|
|
39
|
+
* 2. Allow you to access it in your site using the [SDK](/docs/reference/sdk/).
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
*
|
|
43
|
+
* Takes a list of resources to link to the function.
|
|
44
|
+
*
|
|
45
|
+
* ```js
|
|
46
|
+
* {
|
|
47
|
+
* link: [bucket, stripeKey]
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* You can access the linked resources as bindings in your SolidStart app.
|
|
52
|
+
*/
|
|
53
|
+
link?: SsrSiteArgs["link"];
|
|
54
|
+
/**
|
|
55
|
+
* Set environment variables in your SolidStart app. These are made available:
|
|
56
|
+
*
|
|
57
|
+
* 1. In `vinxi build`, they are loaded into `process.env`.
|
|
58
|
+
* 2. Locally while running `vinxi dev` through `sst dev`.
|
|
59
|
+
*
|
|
60
|
+
* :::tip
|
|
61
|
+
* You can also `link` resources to your SolidStart app and access them in a type-safe way with the [SDK](/docs/reference/sdk/). We recommend linking since it's more secure.
|
|
62
|
+
* :::
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```js
|
|
66
|
+
* {
|
|
67
|
+
* environment: {
|
|
68
|
+
* API_URL: api.url,
|
|
69
|
+
* STRIPE_PUBLISHABLE_KEY: "pk_test_123"
|
|
70
|
+
* }
|
|
71
|
+
* }
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* You can access the environment variables in your SolidStart app as follows:
|
|
75
|
+
*/
|
|
76
|
+
environment?: SsrSiteArgs["environment"];
|
|
77
|
+
/**
|
|
78
|
+
* Set a custom domain for your SolidStart app.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
*
|
|
82
|
+
* ```js
|
|
83
|
+
* {
|
|
84
|
+
* domain: "my-app.com"
|
|
85
|
+
* }
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
domain?: SsrSiteArgs["domain"];
|
|
89
|
+
/**
|
|
90
|
+
* The command used internally to build your SolidStart app.
|
|
91
|
+
*
|
|
92
|
+
* @default `"npm run build"`
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
*
|
|
96
|
+
* If you want to use a different build command.
|
|
97
|
+
* ```js
|
|
98
|
+
* {
|
|
99
|
+
* buildCommand: "yarn build"
|
|
100
|
+
* }
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
buildCommand?: SsrSiteArgs["buildCommand"];
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* The `SolidStart` component lets you deploy a [SolidStart](https://start.solidjs.com) app to Cloudflare.
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
*
|
|
110
|
+
* #### Minimal example
|
|
111
|
+
*
|
|
112
|
+
* Deploy the SolidStart app that's in the project root.
|
|
113
|
+
*
|
|
114
|
+
* ```js title="sst.config.ts"
|
|
115
|
+
* new sst.cloudflare.SolidStart("MyWeb");
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
118
|
+
* #### Change the path
|
|
119
|
+
*
|
|
120
|
+
* Deploys the SolidStart app in the `my-solid-start-app/` directory.
|
|
121
|
+
*
|
|
122
|
+
* ```js {2} title="sst.config.ts"
|
|
123
|
+
* new sst.cloudflare.SolidStart("MyWeb", {
|
|
124
|
+
* path: "my-solid-start-app/"
|
|
125
|
+
* });
|
|
126
|
+
* ```
|
|
127
|
+
*
|
|
128
|
+
* #### Add a custom domain
|
|
129
|
+
*
|
|
130
|
+
* Set a custom domain for your SolidStart app.
|
|
131
|
+
*
|
|
132
|
+
* ```js {2} title="sst.config.ts"
|
|
133
|
+
* new sst.cloudflare.SolidStart("MyWeb", {
|
|
134
|
+
* domain: "my-app.com"
|
|
135
|
+
* });
|
|
136
|
+
* ```
|
|
137
|
+
*
|
|
138
|
+
* #### Link resources
|
|
139
|
+
*
|
|
140
|
+
* [Link resources](/docs/linking/) to your SolidStart app. This will grant permissions
|
|
141
|
+
* to the resources and allow you to access it in your site.
|
|
142
|
+
*
|
|
143
|
+
* ```ts {4} title="sst.config.ts"
|
|
144
|
+
* const bucket = new sst.cloudflare.Bucket("MyBucket");
|
|
145
|
+
*
|
|
146
|
+
* new sst.cloudflare.SolidStart("MyWeb", {
|
|
147
|
+
* link: [bucket]
|
|
148
|
+
* });
|
|
149
|
+
* ```
|
|
150
|
+
*
|
|
151
|
+
* You can use the [SDK](/docs/reference/sdk/) to access the linked resources
|
|
152
|
+
* in your SolidStart app.
|
|
153
|
+
*
|
|
154
|
+
* ```ts title="src/app.tsx"
|
|
155
|
+
* import { Resource } from "sst";
|
|
156
|
+
*
|
|
157
|
+
* console.log(Resource.MyBucket.name);
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
export declare class SolidStart extends SsrSite {
|
|
161
|
+
constructor(name: string, args?: SolidStartArgs, opts?: ComponentResourceOptions);
|
|
162
|
+
protected buildPlan(outputPath: Output<string>): Output<Plan>;
|
|
163
|
+
/**
|
|
164
|
+
* The URL of the SolidStart app.
|
|
165
|
+
*
|
|
166
|
+
* If the `domain` is set, this is the URL with the custom domain.
|
|
167
|
+
* Otherwise, it's the auto-generated Worker URL.
|
|
168
|
+
*/
|
|
169
|
+
get url(): Output<string | undefined>;
|
|
170
|
+
}
|
|
171
|
+
//# sourceMappingURL=solid-start.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solid-start.d.ts","sourceRoot":"","sources":["../../../../../../../.sst/platform/src/components/cloudflare/experimental/solid-start.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAElE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG5D,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD;;;;;;;;;;;;OAYG;IACH,GAAG,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IACzB;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;IACzC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC/B;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;CAC5C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,qBAAa,UAAW,SAAQ,OAAO;gBAEnC,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,cAAmB,EACzB,IAAI,GAAE,wBAA6B;IAKrC,SAAS,CAAC,SAAS,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC;IAoD7D;;;;;OAKG;IACH,IAAW,GAAG,+BAEb;CACF"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { ComponentResourceOptions } from "@pulumi/pulumi";
|
|
2
|
+
import { Component } from "../../component.js";
|
|
3
|
+
import { Link } from "../../link.js";
|
|
4
|
+
import { Input } from "../../input.js";
|
|
5
|
+
import { Worker } from "../worker.js";
|
|
6
|
+
import { BaseStaticSiteArgs } from "../../base/base-static-site.js";
|
|
7
|
+
export interface StaticSiteArgs extends BaseStaticSiteArgs {
|
|
8
|
+
/**
|
|
9
|
+
* 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.
|
|
10
|
+
*
|
|
11
|
+
* This directory will be uploaded to KV. The path is relative to your `sst.config.ts`.
|
|
12
|
+
*
|
|
13
|
+
* :::note
|
|
14
|
+
* If the `build` options are specified, `build.output` will be uploaded to KV instead.
|
|
15
|
+
* :::
|
|
16
|
+
*
|
|
17
|
+
* 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 KV instead.
|
|
18
|
+
*
|
|
19
|
+
* @default `"."`
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
*
|
|
23
|
+
* Change where your static site is located.
|
|
24
|
+
*
|
|
25
|
+
* ```js
|
|
26
|
+
* {
|
|
27
|
+
* path: "packages/web"
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
path?: BaseStaticSiteArgs["path"];
|
|
32
|
+
/**
|
|
33
|
+
* Configure if your static site needs to be built. This is useful if you are using a static site generator.
|
|
34
|
+
*
|
|
35
|
+
* The `build.output` directory will be uploaded to KV instead.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* For a Vite project using npm this might look like this.
|
|
39
|
+
*
|
|
40
|
+
* ```js
|
|
41
|
+
* {
|
|
42
|
+
* build: {
|
|
43
|
+
* command: "npm run build",
|
|
44
|
+
* output: "dist"
|
|
45
|
+
* }
|
|
46
|
+
* }
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
build?: BaseStaticSiteArgs["build"];
|
|
50
|
+
/**
|
|
51
|
+
* Set a custom domain for your static site. Supports domains hosted on Cloudflare.
|
|
52
|
+
*
|
|
53
|
+
* :::tip
|
|
54
|
+
* You can migrate an externally hosted domain to Cloudflare by
|
|
55
|
+
* [following this guide](https://developers.cloudflare.com/dns/zone-setups/full-setup/setup/).
|
|
56
|
+
* :::
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
*
|
|
60
|
+
* ```js
|
|
61
|
+
* {
|
|
62
|
+
* domain: "domain.com"
|
|
63
|
+
* }
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
domain?: Input<string>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* The `StaticSite` component lets you deploy a static website to Cloudflare. It uses [Cloudflare KV storage](https://developers.cloudflare.com/kv/) to store your files and [Cloudflare Workers](https://developers.cloudflare.com/workers/) to serve them.
|
|
70
|
+
*
|
|
71
|
+
* It can also `build` your site by running your static site generator, like [Vite](https://vitejs.dev) and uploading the build output to Cloudflare KV.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
*
|
|
75
|
+
* #### Minimal example
|
|
76
|
+
*
|
|
77
|
+
* Simply uploads the current directory as a static site.
|
|
78
|
+
*
|
|
79
|
+
* ```js
|
|
80
|
+
* new sst.aws.StaticSite("MyWeb");
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* #### Change the path
|
|
84
|
+
*
|
|
85
|
+
* Change the `path` that should be uploaded.
|
|
86
|
+
*
|
|
87
|
+
* ```js
|
|
88
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
89
|
+
* path: "path/to/site"
|
|
90
|
+
* });
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
* #### Deploy a Vite SPA
|
|
94
|
+
*
|
|
95
|
+
* Use [Vite](https://vitejs.dev) to deploy a React/Vue/Svelte/etc. SPA by specifying the `build` config.
|
|
96
|
+
*
|
|
97
|
+
* ```js
|
|
98
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
99
|
+
* build: {
|
|
100
|
+
* command: "npm run build",
|
|
101
|
+
* output: "dist"
|
|
102
|
+
* }
|
|
103
|
+
* });
|
|
104
|
+
* ```
|
|
105
|
+
*
|
|
106
|
+
* #### Deploy a Jekyll site
|
|
107
|
+
*
|
|
108
|
+
* Use [Jekyll](https://jekyllrb.com) to deploy a static site.
|
|
109
|
+
*
|
|
110
|
+
* ```js
|
|
111
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
112
|
+
* errorPage: "404.html",
|
|
113
|
+
* build: {
|
|
114
|
+
* command: "bundle exec jekyll build",
|
|
115
|
+
* output: "_site"
|
|
116
|
+
* }
|
|
117
|
+
* });
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* #### Deploy a Gatsby site
|
|
121
|
+
*
|
|
122
|
+
* Use [Gatsby](https://www.gatsbyjs.com) to deploy a static site.
|
|
123
|
+
*
|
|
124
|
+
* ```js
|
|
125
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
126
|
+
* errorPage: "404.html",
|
|
127
|
+
* build: {
|
|
128
|
+
* command: "npm run build",
|
|
129
|
+
* output: "public"
|
|
130
|
+
* }
|
|
131
|
+
* });
|
|
132
|
+
* ```
|
|
133
|
+
*
|
|
134
|
+
* #### Deploy an Angular SPA
|
|
135
|
+
*
|
|
136
|
+
* Use [Angular](https://angular.dev) to deploy a SPA.
|
|
137
|
+
*
|
|
138
|
+
* ```js
|
|
139
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
140
|
+
* build: {
|
|
141
|
+
* command: "ng build --output-path dist",
|
|
142
|
+
* output: "dist"
|
|
143
|
+
* }
|
|
144
|
+
* });
|
|
145
|
+
* ```
|
|
146
|
+
*
|
|
147
|
+
* #### Add a custom domain
|
|
148
|
+
*
|
|
149
|
+
* Set a custom domain for your site.
|
|
150
|
+
*
|
|
151
|
+
* ```js {2}
|
|
152
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
153
|
+
* domain: "my-app.com"
|
|
154
|
+
* });
|
|
155
|
+
* ```
|
|
156
|
+
*
|
|
157
|
+
* #### Redirect www to apex domain
|
|
158
|
+
*
|
|
159
|
+
* Redirect `www.my-app.com` to `my-app.com`.
|
|
160
|
+
*
|
|
161
|
+
* ```js {4}
|
|
162
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
163
|
+
* domain: {
|
|
164
|
+
* name: "my-app.com",
|
|
165
|
+
* redirects: ["www.my-app.com"]
|
|
166
|
+
* }
|
|
167
|
+
* });
|
|
168
|
+
* ```
|
|
169
|
+
*
|
|
170
|
+
* #### Set environment variables
|
|
171
|
+
*
|
|
172
|
+
* Set `environment` variables for the build process of your static site. These will be used locally and on deploy.
|
|
173
|
+
*
|
|
174
|
+
* :::tip
|
|
175
|
+
* For Vite, the types for the environment variables are also generated. This can be configured through the `vite` prop.
|
|
176
|
+
* :::
|
|
177
|
+
*
|
|
178
|
+
* 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.
|
|
179
|
+
*
|
|
180
|
+
* ```ts {5-7}
|
|
181
|
+
* const bucket = new sst.aws.Bucket("MyBucket");
|
|
182
|
+
*
|
|
183
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
184
|
+
* environment: {
|
|
185
|
+
* BUCKET_NAME: bucket.name,
|
|
186
|
+
* // Accessible in the browser
|
|
187
|
+
* VITE_STRIPE_PUBLISHABLE_KEY: "pk_test_123"
|
|
188
|
+
* },
|
|
189
|
+
* build: {
|
|
190
|
+
* command: "npm run build",
|
|
191
|
+
* output: "dist"
|
|
192
|
+
* }
|
|
193
|
+
* });
|
|
194
|
+
* ```
|
|
195
|
+
*/
|
|
196
|
+
export declare class StaticSite extends Component implements Link.Linkable {
|
|
197
|
+
private server;
|
|
198
|
+
constructor(name: string, args?: StaticSiteArgs, opts?: ComponentResourceOptions);
|
|
199
|
+
/**
|
|
200
|
+
* The URL of the website.
|
|
201
|
+
*
|
|
202
|
+
* If the `domain` is set, this is the URL with the custom domain.
|
|
203
|
+
* Otherwise, it's the auto-generated worker URL.
|
|
204
|
+
*/
|
|
205
|
+
get url(): $util.Output<string | undefined>;
|
|
206
|
+
/**
|
|
207
|
+
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
208
|
+
*/
|
|
209
|
+
get nodes(): {
|
|
210
|
+
/**
|
|
211
|
+
* The worker that serves the requests.
|
|
212
|
+
*/
|
|
213
|
+
server: Worker;
|
|
214
|
+
};
|
|
215
|
+
/** @internal */
|
|
216
|
+
getSSTLink(): {
|
|
217
|
+
properties: {
|
|
218
|
+
url: $util.Output<string | undefined>;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
//# sourceMappingURL=static-site.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static-site.d.ts","sourceRoot":"","sources":["../../../../../../../.sst/platform/src/components/cloudflare/experimental/static-site.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EACL,kBAAkB,EAGnB,MAAM,gCAAgC,CAAC;AAExC,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAClC;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACpC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+HG;AACH,qBAAa,UAAW,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IAChE,OAAO,CAAC,MAAM,CAAS;gBAGrB,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,cAAmB,EACzB,IAAI,GAAE,wBAA6B;IAuDrC;;;;;OAKG;IACH,IAAW,GAAG,qCAEb;IAED;;OAEG;IACH,IAAW,KAAK;QAEZ;;WAEG;;MAGN;IAED,gBAAgB;IACT,UAAU;;;;;CAOlB"}
|