Skip to content

Commit

Permalink
fix invitations
Browse files Browse the repository at this point in the history
  • Loading branch information
nikgraf committed Jun 11, 2024
1 parent dd4c6a7 commit e8e8b8f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion apps/app/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
EXPO_PUBLIC_API_ENDPOINT=http://localhost:3030/api
EXPO_PUBLIC_SECSYNC_WS_ENDPOINT=ws://localhost:3030
EXPO_PUBLIC_SECSYNC_WS_ENDPOINT=ws://localhost:3030
EXPO_PUBLIC_WEB_APP_ORIGIN=http://localhost:8081
3 changes: 2 additions & 1 deletion apps/app/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
EXPO_PUBLIC_API_ENDPOINT=http://localhost:3030/api
EXPO_PUBLIC_SECSYNC_WS_ENDPOINT=ws://localhost:3030
EXPO_PUBLIC_SECSYNC_WS_ENDPOINT=ws://localhost:3030
EXPO_PUBLIC_WEB_APP_ORIGIN=http://localhost:8081
6 changes: 4 additions & 2 deletions apps/app/eas.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@
"distribution": "internal",
"env": {
"EXPO_PUBLIC_API_ENDPOINT": "https://lini-api-production.fly.dev/api",
"EXPO_PUBLIC_SECSYNC_WS_ENDPOINT": "wss://lini-api-production.fly.dev"
"EXPO_PUBLIC_SECSYNC_WS_ENDPOINT": "wss://lini-api-production.fly.dev",
"EXPO_PUBLIC_WEB_APP_ORIGIN": "https://www.lini.app"
}
},
"production": {
"env": {
"EXPO_PUBLIC_API_ENDPOINT": "https://lini-api-production.fly.dev/api",
"EXPO_PUBLIC_SECSYNC_WS_ENDPOINT": "wss://lini-api-production.fly.dev"
"EXPO_PUBLIC_SECSYNC_WS_ENDPOINT": "wss://lini-api-production.fly.dev",
"EXPO_PUBLIC_WEB_APP_ORIGIN": "https://www.lini.app"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const DARK_THEME: Theme = {
colors: NAV_THEME.dark,
};

const apiUrl = process.env.EXPO_PUBLIC_API_ENDPOINT;
const apiUrl = process.env.EXPO_PUBLIC_API_ENDPOINT as string;

// Catch any errors thrown by the Layout component.
export { ErrorBoundary } from "expo-router";
Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/components/documentInvitation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const DocumentInvitation: React.FC<Props> = ({
{seed && (
<Input
id={id}
value={`${window.location.origin}/list-invitation/${documentInvitationQuery.data?.token}#key=${seed}`}
value={`${process.env.EXPO_PUBLIC_WEB_APP_ORIGIN}/list-invitation/${documentInvitationQuery.data?.token}#key=${seed}`}
readOnly
multiline
className="min-h-32"
Expand Down

0 comments on commit e8e8b8f

Please sign in to comment.