Skip to content

Commit

Permalink
Corrige la redirection depuis le site
Browse files Browse the repository at this point in the history
  • Loading branch information
mariheck committed Nov 13, 2024
1 parent d2c6f40 commit ec2ffd1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cd-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
--AXEPTIO_ID=${{ vars.AXEPTIO_ID }}
--APP_URL=${{ vars.APP_URL }}
--PANIER_URL=${{ vars.PANIER_URL }}
--AUTH_URL=${{ vars.AUTH_URL }}
--CRISP_WEBSITE_ID=${{ vars.CRISP_WEBSITE_ID }}
- name: Deploy site on Koyeb
Expand Down
1 change: 1 addition & 0 deletions packages/api/src/environmentVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ export const ENV = {
env: process.env.NODE_ENV,
},
crisp_website_id: process.env.NEXT_PUBLIC_CRISP_WEBSITE_ID,
app_url: process.env.NEXT_PUBLIC_APP_URL,
};
1 change: 1 addition & 0 deletions packages/site/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ NEXT_PUBLIC_CRISP_WEBSITE_ID="// Crisp integration (warning: use different ID by
NEXT_PUBLIC_AXEPTIO_ID=${AXEPTIO_ID}
NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXT_PUBLIC_PANIER_URL=http://localhost:3002
NEXT_PUBLIC_AUTH_URL=http://localhost:3003
2 changes: 2 additions & 0 deletions packages/site/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ docker:
ARG --required AXEPTIO_ID
ARG --required APP_URL
ARG --required PANIER_URL
ARG --required AUTH_URL
ARG POSTHOG_HOST
ARG POSTHOG_KEY
ARG CRISP_WEBSITE_ID
Expand All @@ -60,6 +61,7 @@ docker:
ENV NEXT_PUBLIC_CRISP_WEBSITE_ID=$CRISP_WEBSITE_ID
ENV NEXT_PUBLIC_APP_URL=$APP_URL
ENV NEXT_PUBLIC_PANIER_URL=$PANIER_URL
ENV NEXT_PUBLIC_AUTH_URL=$AUTH_URL

ARG DOCKER_IMAGE=$SITE_IMG_NAME

Expand Down

0 comments on commit ec2ffd1

Please sign in to comment.