Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

sst.cloudflare.StaticSite: expose worker properties #808

Closed
wants to merge 1 commit into from

Conversation

mlafeldt
Copy link
Contributor

@mlafeldt mlafeldt commented Aug 3, 2024

e.g. to get the worker's name for wrangler tail

const site = new sst.cloudflare.StaticSite('Example', {
  path: 'dist',
})

return {
  kv: site.nodes.assets.id,
  worker: site.nodes.router.nodes.worker.name,
}

Closes sst/sst#4293

@jayair
Copy link
Contributor

jayair commented Aug 9, 2024

Can you open an issue for this? I'll assign it to have it reviewed.

@mlafeldt
Copy link
Contributor Author

@jayair sst/sst#4293

@mlafeldt
Copy link
Contributor Author

Never mind, I ended up using Cloudflare Pages.

@mlafeldt mlafeldt closed this Aug 23, 2024
@mlafeldt mlafeldt deleted the expose-static-site-router branch August 23, 2024 13:07
@mlafeldt mlafeldt restored the expose-static-site-router branch August 23, 2024 13:10
@mlafeldt mlafeldt deleted the expose-static-site-router branch August 23, 2024 13:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose worker properties in sst.cloudflare.StaticSite
2 participants