Skip to content

Commit

Permalink
environment variables need to come from process.env 🤦🏻‍♀️
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelcmtd committed Feb 5, 2024
1 parent 5503a1e commit 5d71a00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM node:lts-alpine
ENV NODE_ENV=production
ENV SUPABASE_URL=
ENV SUPABASE_ANON_KEY=
env HCAPTCHA_SITEKEY=
ENV HCAPTCHA_SITEKEY=
WORKDIR /usr/src/app

# requires buildx/buildkit, which not everything has *yet*
Expand All @@ -18,4 +18,4 @@ RUN --mount=type=bind,source=package.json,target=package.json \
USER node
COPY dist .
EXPOSE 4321
CMD node server/entry.mjs
CMD ["node", "server/entry.mjs"]
4 changes: 2 additions & 2 deletions src/backendlib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import type { Check, Template, TemplateRevision, check, check_data, check_revisi
type ValOrErr<V, E> = [V, null] | [null, E];

export const supabase = createClient(
import.meta.env.SUPABASE_URL,
import.meta.env.SUPABASE_ANON_KEY,
process.env.SUPABASE_URL!,
process.env.SUPABASE_ANON_KEY!,
{ auth: { flowType: "pkce" } }
);

Expand Down

0 comments on commit 5d71a00

Please sign in to comment.