Skip to content

Commit

Permalink
websites-integration: do not rely on supported experimental feature
Browse files Browse the repository at this point in the history
  • Loading branch information
cometkim committed Jun 7, 2024
1 parent 62f6740 commit 2e27bbb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const onRequestPost: PagesFunction<Env, 'id'> = async (context) => {

let stub: DurableObjectStub<Deployment>;
try {
stub = context.env.DEPLOYMENT.getExisting(deploymentId);
stub = context.env.DEPLOYMENT.get(deploymentId);
} catch {
return json({ message: 'Not Found' }, { status: 404 });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const onRequestGet: PagesFunction<Env, 'id'> = async (context) => {

let stub: DurableObjectStub<Deployment>;
try {
stub = context.env.DEPLOYMENT.getExisting(deploymentId);
stub = context.env.DEPLOYMENT.get(deploymentId);
} catch {
return json({ message: 'Not found' }, { status: 404 });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const onRequestGet: PagesFunction<Env, 'id'> = async (context) => {

let stub: DurableObjectStub<Deployment>;
try {
stub = context.env.DEPLOYMENT.getExisting(deploymentId);
stub = context.env.DEPLOYMENT.get(deploymentId);
} catch {
return json({ id: paramId, message: 'Not found' }, { status: 404 });
}
Expand Down
2 changes: 1 addition & 1 deletion _workers/websites-integration/wrangler.do.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "websites-integration"
compatibility_date = "2024-05-04"
main = "_worker.js"
compatibility_flags = ["durable_object_get_existing"]
compatibility_flags = []

[[durable_objects.bindings]]
name = "DEPLOYMENT"
Expand Down
2 changes: 1 addition & 1 deletion _workers/websites-integration/wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "websites-integration"
pages_build_output_dir = "./public"
compatibility_date = "2024-05-04"
compatibility_flags = ["durable_object_get_existing"]
compatibility_flags = []

[[r2_buckets]]
binding = "ARTIFACTS"
Expand Down

0 comments on commit 2e27bbb

Please sign in to comment.