diff --git a/examples/write-patterns/Dockerfile b/examples/write-patterns/Dockerfile index 5a502f0d5d..6f1297efed 100644 --- a/examples/write-patterns/Dockerfile +++ b/examples/write-patterns/Dockerfile @@ -9,6 +9,7 @@ RUN npm install -g pnpm COPY pnpm-*.yaml ./ COPY package.json ./ COPY tsconfig.build.json ./ +COPY tsconfig.base.json ./ COPY packages/typescript-client packages/typescript-client/ COPY packages/react-hooks packages/react-hooks/ COPY packages/experimental packages/experimental/ @@ -29,4 +30,4 @@ COPY --from=deps /app/ ./ WORKDIR /app/examples/write-patterns EXPOSE 3001 -ENTRYPOINT ["node", "shared/backend/api.js"] \ No newline at end of file +ENTRYPOINT ["node", "shared/backend/api.js"] diff --git a/examples/write-patterns/sst-env.d.ts b/examples/write-patterns/sst-env.d.ts index 79bd849b47..53070092d9 100644 --- a/examples/write-patterns/sst-env.d.ts +++ b/examples/write-patterns/sst-env.d.ts @@ -1,6 +1,9 @@ +/* This file is auto-generated by SST. Do not edit. */ /* tslint:disable */ /* eslint-disable */ +/* deno-fmt-ignore-file */ import "sst" +export {} declare module "sst" { export interface Resource { "write-patterns-production-vpc": { @@ -17,4 +20,3 @@ declare module "sst" { } } } -export {} diff --git a/examples/write-patterns/sst.config.ts b/examples/write-patterns/sst.config.ts index 4fb83f699f..90ff2b76e5 100644 --- a/examples/write-patterns/sst.config.ts +++ b/examples/write-patterns/sst.config.ts @@ -161,7 +161,7 @@ async function addDatabaseToElectric( ): Promise<{ id: string; token: string }> { const adminApi = process.env.ELECTRIC_ADMIN_API - const result = await fetch(`${adminApi}/v1/databases`, { + const result = await fetch(new URL('v1/databases', adminApi), { method: 'PUT', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({