Skip to content

Commit 9ff82f2

Browse files
author
Frank
committed
Cloudflare Astro: add environment to local devl
1 parent d599a2e commit 9ff82f2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/internal/playground/infra-cf/sst.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default $config({
3232
}
3333

3434
function createAstro() {
35-
new sst.cloudflare.Astro("MyAstro", {
35+
new sst.cloudflare.x.Astro("MyAstro", {
3636
path: "../sites/astro5",
3737
link: [bucket],
3838
environment: {

platform/src/components/cloudflare/ssr-site.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export abstract class SsrSite extends Component implements Link.Linkable {
5555
this.registerOutputs({
5656
_hint: $dev ? undefined : this.url,
5757
_dev: {
58+
environment: args.environment,
5859
command: "npm run dev",
5960
directory: sitePath,
6061
autostart: true,

0 commit comments

Comments
 (0)