Skip to content

Commit

Permalink
update endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
xrutayisire committed Jan 13, 2025
1 parent 139900d commit 108f7ff
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 17 deletions.
4 changes: 1 addition & 3 deletions packages/init/test/__testutils__/mockAWSACLAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ export const mockAWSACLAPI = (
ctx: TestContext,
config?: MockAWSACLAPIConfig,
): MockAWSACLAPIReturnType => {
const endpoint =
config?.endpoint ??
"https://0yyeb2g040.execute-api.us-east-1.amazonaws.com/prod/";
const endpoint = config?.endpoint ?? "https://acl-provider.prismic.io/";

const s3ACL = {
uploadEndpoint:
Expand Down
6 changes: 2 additions & 4 deletions packages/manager/src/constants/API_ENDPOINTS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ If you didn't intend to run Slice Machine this way, stop it immediately and unse
PrismicAuthentication: "https://auth.wroom.io/",
PrismicModels: "https://customtypes.wroom.io/",
PrismicUser: "https://user-service.wroom.io/",
AwsAclProvider:
"https://2iamcvnxf4.execute-api.us-east-1.amazonaws.com/stage/",
AwsAclProvider: "https://acl-provider.wroom.io/",
PrismicEmbed: "https://oembed.wroom.io",
PrismicUnsplash: "https://unsplash.wroom.io/",
SliceMachineV1: "https://sm-api.wroom.io/v1/",
Expand All @@ -100,8 +99,7 @@ If you didn't intend to run Slice Machine this way, stop it immediately and unse
PrismicAuthentication: "https://auth.prismic.io/",
PrismicModels: "https://customtypes.prismic.io/",
PrismicUser: "https://user-service.prismic.io/",
AwsAclProvider:
"https://0yyeb2g040.execute-api.us-east-1.amazonaws.com/prod/",
AwsAclProvider: "https://acl-provider.prismic.io/",
PrismicEmbed: "https://oembed.prismic.io",
PrismicUnsplash: "https://unsplash.prismic.io/",
SliceMachineV1: "https://sm-api.prismic.io/v1/",
Expand Down
3 changes: 1 addition & 2 deletions packages/manager/test/SliceMachineManager-getState.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ it("returns global Slice Machine state", async () => {
const result = await manager.getState();

expect(result.env.endpoints).toStrictEqual({
AwsAclProvider:
"https://0yyeb2g040.execute-api.us-east-1.amazonaws.com/prod/",
AwsAclProvider: "https://acl-provider.prismic.io/",
PrismicEmbed: "https://oembed.prismic.io",
PrismicAuthentication: "https://auth.prismic.io/",
PrismicModels: "https://customtypes.prismic.io/",
Expand Down
4 changes: 1 addition & 3 deletions packages/manager/test/__testutils__/mockAWSACLAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ export const mockAWSACLAPI = (
ctx: TestContext,
config?: MockAWSACLAPIConfig,
): MockAWSACLAPIReturnType => {
const endpoint =
config?.endpoint ??
"https://0yyeb2g040.execute-api.us-east-1.amazonaws.com/prod/";
const endpoint = config?.endpoint ?? "https://acl-provider.prismic.io/";

const s3ACL = {
uploadEndpoint:
Expand Down
4 changes: 1 addition & 3 deletions packages/slice-machine/test/__testutils__/mockAWSACLAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ export const mockAWSACLAPI = (
ctx: TestContext,
config?: MockAWSACLAPIConfig,
): MockAWSACLAPIReturnType => {
const endpoint =
config?.endpoint ??
"https://0yyeb2g040.execute-api.us-east-1.amazonaws.com/prod/";
const endpoint = config?.endpoint ?? "https://acl-provider.prismic.io/";

const s3ACL = {
uploadEndpoint:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ export const dummyServerState: Pick<
PrismicAuthentication: "https://auth.prismic.io/",
PrismicModels: "https://customtypes.prismic.io/",
PrismicUser: "https://user-service.prismic.io/",
AwsAclProvider:
"https://0yyeb2g040.execute-api.us-east-1.amazonaws.com/prod/",
AwsAclProvider: "https://acl-provider.prismic.io/",
PrismicEmbed: "https://oembed.prismic.io",
PrismicUnsplash: "https://unsplash.prismic.io/",
SliceMachineV1: "https://sm-api.prismic.io/v1/",
Expand Down

0 comments on commit 108f7ff

Please sign in to comment.