Skip to content

Commit

Permalink
fixees
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Dec 10, 2024
1 parent 6fd9b90 commit 931e6a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/write-patterns/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -29,4 +30,4 @@ COPY --from=deps /app/ ./
WORKDIR /app/examples/write-patterns

EXPOSE 3001
ENTRYPOINT ["node", "shared/backend/api.js"]
ENTRYPOINT ["node", "shared/backend/api.js"]
4 changes: 3 additions & 1 deletion examples/write-patterns/sst-env.d.ts
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -17,4 +20,3 @@ declare module "sst" {
}
}
}
export {}
2 changes: 1 addition & 1 deletion examples/write-patterns/sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 931e6a6

Please sign in to comment.